community.general/lib/ansible/modules/cloud
Lars Kellogg-Stedman 413a9d0c62 fix handling of nics argument
The existing code was receiving a list of strings and erroneously
assuming it was being given a list of dictionaries, leading it to fail
with:

    AttributeError: 'str' object has no attribute 'get'

This commit corrects the list handling code to check the type of each
item and handle it appropriately.   Also, based on bcoca's comment
in #2253, thie code removes the special case for a string-only argument.

By transforming string arguments into dicts and then handling them like
any other dict argument, this also permits arguments of the form:

    nics: net-name=mynet

Or:

    nics: port-name=mynet

Previous versions of this code only supported `net-id` and `port-id` in
string specifications.
2016-12-08 11:23:41 -05:00
..
amazon added note on when reboot command became available fixes #2050 2016-12-08 11:23:41 -05:00
azure keep backwards compatibility 2016-12-08 11:23:39 -05:00
digital_ocean Fixed bug, when MX records pointed to ORIGIN(@) caused unintentional change of random A record. 2016-12-08 11:23:29 -05:00
docker fix #2043: strip empty dict from end of 'pull' stream 2016-12-08 11:23:40 -05:00
google Delete dead and broken code 2016-12-08 11:23:33 -05:00
linode Updating cloud modules with proper github author information 2016-12-08 11:23:07 -05:00
openstack fix handling of nics argument 2016-12-08 11:23:41 -05:00
rackspace added version added to new rax_cdb choices 2016-12-08 11:23:40 -05:00
vmware vm_floppy 2.0 support 2016-12-08 11:23:34 -05:00
__init__.py package files 2016-12-08 11:22:22 -05:00