ansible/cloud
Joseph Callen 0740753255 Resolves issue with vmware_vm_vss_dvs_migrate module for v2.0
When this module was written back in May 2015 we were using 1.9.x. Being lazy I added to param the objects that the other functions would need. What I have noticed is in 2.0 exit_json is trying to jsonify those complex objects and failing. This PR resolves that issue with the vmware_vm_vss_dvs_migrate module.

@kamsz reported this issue in https://github.com/ansible/ansible-modules-extras/pull/1568

Playbook
```
- name: Migrate VCSA to vDS
      local_action:
        module: vmware_vm_vss_dvs_migrate
        hostname: "{{ mgmt_ip_address }}"
        username: "{{ vcsa_user }}"
        password: "{{ vcsa_pass }}"
        vm_name: "{{ hostname }}"
        dvportgroup_name: Management
```

Module Testing
```
ASK [Migrate VCSA to vDS] *****************************************************
task path: /opt/autodeploy/projects/emmet/site_deploy.yml:260
ESTABLISH LOCAL CONNECTION FOR USER: root
localhost EXEC ( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1454695546.3-207189190861859 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1454695546.3-207189190861859 )" )
localhost PUT /tmp/tmpkzD4pF TO /root/.ansible/tmp/ansible-tmp-1454695546.3-207189190861859/vmware_vm_vss_dvs_migrate
localhost EXEC LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1454695546.3-207189190861859/vmware_vm_vss_dvs_migrate; rm -rf "/root/.ansible/tmp/ansible-tmp-1454695546.3-207189190861859/" > /dev/null 2>&1
changed: [foundation-vcsa -> localhost] => {"changed": true, "invocation": {"module_args": {"dvportgroup_name": "Management", "hostname": "172.27.0.100", "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "username": "root", "vm_name": "cscvcatmp001"}, "module_name": "vmware_vm_vss_dvs_migrate"}, "result": null}

```
2016-02-05 14:53:36 -05:00
..
amazon Fix DOCUMENTATION for ec2_vpc_dhcp_options.py and add missing RETURN to ec2_vol_facts.py 2016-02-02 10:00:51 -06:00
centurylink added missing : to docs 2015-11-02 14:19:11 -05:00
cloudstack Remove duplicate documentation fields 2016-01-28 09:20:55 -08:00
docker Quote strings that make the module docs fail to build 2015-11-20 13:57:58 -08:00
google added version_added to new feature, removed unused aliases 2015-10-22 08:31:49 -04:00
lxc Replace choices=BOOLEANS by type='bool', fix #1326 2015-12-21 23:39:20 +01:00
misc fix typo 2016-01-31 20:05:45 +01:00
openstack Fix exception output for os_keystone_domain. 2016-01-19 12:17:36 -05:00
profitbricks Merge pull request #805 from StackPointCloud/module/profitbricks-volume-actions 2015-08-26 07:23:46 -04:00
rackspace Merge pull request #268 from smashwilson/rax_clb_ssl 2015-07-02 09:27:55 -05:00
vmware Resolves issue with vmware_vm_vss_dvs_migrate module for v2.0 2016-02-05 14:53:36 -05:00
webfaction Replace choices=BOOLEANS by type='bool', fix #1326 2015-12-21 23:39:20 +01:00
__init__.py package files 2014-09-26 11:04:10 -04:00
xenserver_facts.py sys.exit removal for cloud/xenserver_facts.py 2015-10-05 13:22:32 -05:00