@ -58,8 +58,8 @@ options:
- purge
state :
description :
- Assert the state of the record set . Use ' present ' to create or update and
' absent ' to delete .
- Assert the state of the record set . Use C ( present ) to create or update and
C ( absent ) to delete .
default : present
choices :
- absent
@ -174,7 +174,7 @@ import sys
from ansible . module_utils . basic import _load_params
from ansible . module_utils . six import iteritems
from ansible . module_utils . azure_rm_common import AzureRMModuleBase
from ansible . module_utils . azure_rm_common import AzureRMModuleBase , HAS_AZURE
try :
from msrestazure . azure_exceptions import CloudError
@ -183,9 +183,6 @@ except ImportError:
# This is handled in azure_rm_common
pass
base_record = dict (
entry = dict ( type = ' str ' , required = True )
)
RECORD_ARGSPECS = dict (
A = dict (
@ -229,7 +226,7 @@ RECORDSET_VALUE_MAP = dict(
SRV = dict ( attrname = ' srv_records ' , classobj = SrvRecord , is_list = True ) ,
TXT = dict ( attrname = ' txt_records ' , classobj = TxtRecord , is_list = True ) ,
# FUTURE: add missing record types from https://github.com/Azure/azure-sdk-for-python/blob/master/azure-mgmt-dns/azure/mgmt/dns/models/record_set.py
)
) if HAS_AZURE else { }
class AzureRMRecordSet ( AzureRMModuleBase ) :