community.general/lib/ansible/modules/cloud
Elachance 7b8b444602 Fix logic in os_nova_host_aggregate module (#23191)
* Fix logic in os_nova_host_aggregate module

Fix logic around adding availability zone to metadata and comparing existing host list to parameter host list. 

Previously, when no availability zone was defined, an empty availability zone was being appended to metadata. This was causing 'empty named availability zone' errors when running the module against an already existing host aggregate with no availability zone. This was fixed by only appending availability zone to metadata if it is not an empty parameter.

Also added set() casting when comparing existing and new host lists. Previously, if existing host list was not in the same order as the host list in the .yml parameter file the module would consider this a change even if the two lists had the same entries.

* Update os_nova_host_aggregate.py
2017-08-17 15:30:38 -04:00
..
amazon ec2.py: filter by client-token if id is specified (#26114) 2017-08-17 15:17:13 -04:00
atomic Update metadata to 1.1 2017-08-15 23:12:08 -07:00
azure Update metadata to 1.1 2017-08-15 23:12:08 -07:00
centurylink Update metadata to 1.1 2017-08-15 23:12:08 -07:00
cloudscale Update metadata to 1.1 2017-08-15 23:12:08 -07:00
cloudstack Update metadata to 1.1 2017-08-15 23:12:08 -07:00
digital_ocean Update metadata to 1.1 2017-08-15 23:12:08 -07:00
dimensiondata Update metadata to 1.1 2017-08-15 23:12:08 -07:00
docker [docker] Fix ignore_image option not work issue. (#19039) 2017-08-17 13:47:52 -04:00
google Update metadata to 1.1 2017-08-15 23:12:08 -07:00
linode Update metadata to 1.1 2017-08-15 23:12:08 -07:00
lxc Replace lxc-clone with lxc-copy (#19890) (#20373) 2017-08-17 12:01:47 -04:00
lxd Update metadata to 1.1 2017-08-15 23:12:08 -07:00
misc Update metadata to 1.1 2017-08-15 23:12:08 -07:00
openstack Fix logic in os_nova_host_aggregate module (#23191) 2017-08-17 15:30:38 -04:00
ovh Update metadata to 1.1 2017-08-15 23:12:08 -07:00
ovirt Update metadata to 1.1 2017-08-15 23:12:08 -07:00
packet Update metadata to 1.1 2017-08-15 23:12:08 -07:00
profitbricks Update metadata to 1.1 2017-08-15 23:12:08 -07:00
pubnub Update metadata to 1.1 2017-08-15 23:12:08 -07:00
rackspace Update metadata to 1.1 2017-08-15 23:12:08 -07:00
smartos Update metadata to 1.1 2017-08-15 23:12:08 -07:00
softlayer Update metadata to 1.1 2017-08-15 23:12:08 -07:00
univention Update metadata to 1.1 2017-08-15 23:12:08 -07:00
vmware Update metadata to 1.1 2017-08-15 23:12:08 -07:00
webfaction Update metadata to 1.1 2017-08-15 23:12:08 -07:00
__init__.py package files 2016-12-08 11:22:22 -05:00