diff options
author | Brian Coca <brian.coca+git@gmail.com> | 2016-04-26 12:46:41 -0400 |
---|---|---|
committer | Brian Coca <brian.coca+git@gmail.com> | 2016-04-26 12:47:51 -0400 |
commit | 9eb2b557cd08f2a6d381ec0360fa47750146b65a (patch) | |
tree | 9ae3c2d8d5c4af3ad5555e81fe282e65110321c8 /cloud/azure/azure_rm_publicipaddress.py | |
parent | 0f26d71715b061d9307b55af64a73a4b0abbb30a (diff) | |
download | ansible-modules-core-9eb2b557cd08f2a6d381ec0360fa47750146b65a.tar.gz |
several fixes:
- removed actions feature as this should be global and not per module
- removed default fields from return docs
- moved tags docs to shared fragments
- removed unused imports
Diffstat (limited to 'cloud/azure/azure_rm_publicipaddress.py')
-rw-r--r-- | cloud/azure/azure_rm_publicipaddress.py | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/cloud/azure/azure_rm_publicipaddress.py b/cloud/azure/azure_rm_publicipaddress.py index bfab0137..15fa9e41 100644 --- a/cloud/azure/azure_rm_publicipaddress.py +++ b/cloud/azure/azure_rm_publicipaddress.py @@ -71,21 +71,10 @@ options: - Valid azure location. Defaults to location of the resource group. default: resource_group location required: false - tags: - description: - - "Dictionary of string:string pairs to assign as metadata to the object. Metadata tags on the object - will be updated with any provided values. To remove tags use the purge_tags option." - required: false - default: null - purge_tags: - description: - - Use to remove tags from an object. Any tags not found in the tags parameter will be removed from - the object's metadata. - required: false - default: false extends_documentation_fragment: - azure + - azure_tags author: - "Chris Houseknecht (@chouseknecht)" @@ -108,11 +97,6 @@ EXAMPLES = ''' ''' RETURN = ''' -changed: - description: Whether or not the object was changed. - returned: always - type: bool - sample: True state: description: Facts about the current state of the object. returned: always @@ -136,9 +120,7 @@ from ansible.module_utils.azure_rm_common import * try: from msrestazure.azure_exceptions import CloudError - from azure.common import AzureMissingResourceHttpError from azure.mgmt.network.models import PublicIPAddress, PublicIPAddressDnsSettings - from azure.mgmt.network.models.network_management_client_enums import IPAllocationMethod except ImportError: # This is handled in azure_rm_common pass @@ -248,7 +230,7 @@ class AzureRMPublicIPAddress(AzureRMModuleBase): if self.check_mode: return results - + if changed: if self.state == 'present': if not pip: |