parent
61d326a753
commit
a2d23983c0
1 changed files with 3 additions and 3 deletions
|
@ -68,7 +68,7 @@ EXAMPLES = '''
|
||||||
password: vcenter_password
|
password: vcenter_password
|
||||||
portgroup_name: Management
|
portgroup_name: Management
|
||||||
switch_name: dvSwitch
|
switch_name: dvSwitch
|
||||||
vlan_id: 123
|
vlan_id: 123
|
||||||
num_ports: 120
|
num_ports: 120
|
||||||
portgroup_type: earlyBinding
|
portgroup_type: earlyBinding
|
||||||
state: present
|
state: present
|
||||||
|
@ -93,7 +93,7 @@ class VMwareDvsPortgroup(object):
|
||||||
self.dv_switch = None
|
self.dv_switch = None
|
||||||
self.state = self.module.params['state']
|
self.state = self.module.params['state']
|
||||||
self.content = connect_to_api(module)
|
self.content = connect_to_api(module)
|
||||||
|
|
||||||
def process_state(self):
|
def process_state(self):
|
||||||
try:
|
try:
|
||||||
dvspg_states = {
|
dvspg_states = {
|
||||||
|
@ -143,7 +143,7 @@ class VMwareDvsPortgroup(object):
|
||||||
result = None
|
result = None
|
||||||
|
|
||||||
if not self.module.check_mode:
|
if not self.module.check_mode:
|
||||||
task = dvs_portgroup.Destroy_Task()
|
task = self.dvs_portgroup.Destroy_Task()
|
||||||
changed, result = wait_for_task(task)
|
changed, result = wait_for_task(task)
|
||||||
self.module.exit_json(changed=changed, result=str(result))
|
self.module.exit_json(changed=changed, result=str(result))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue