1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

cloudstack: add instance_name alias internal name to returns in cs_instance

This commit is contained in:
Rene Moser 2015-05-30 00:26:00 +02:00 committed by Matt Clay
parent 62e062eb34
commit 64f9c9fc17

View file

@ -331,6 +331,11 @@ hypervisor:
returned: success
type: string
sample: KVM
instance_name:
description: Internal name of the instance (ROOT admin only).
returned: success
type: string
sample: i-44-3992-VM
'''
import base64
@ -719,6 +724,8 @@ class AnsibleCloudStackInstance(AnsibleCloudStack):
self.result['project'] = instance['project']
if 'hypervisor' in instance:
self.result['hypervisor'] = instance['hypervisor']
if 'instancename' in instance:
self.result['instance_name'] = instance['instancename']
if 'publicip' in instance:
self.result['public_ip'] = instance['public_ip']
if 'passwordenabled' in instance: