|
|
@ -16,7 +16,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
DOCUMENTATION = '''
|
|
|
|
DOCUMENTATION = '''
|
|
|
|
---
|
|
|
|
---
|
|
|
|
module: SoftLayer
|
|
|
|
module: sl_vm
|
|
|
|
short_description: create or cancel a virtual instance in SoftLayer
|
|
|
|
short_description: create or cancel a virtual instance in SoftLayer
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Creates or cancels SoftLayer instances. When created, optionally waits for it to be 'running'.
|
|
|
|
- Creates or cancels SoftLayer instances. When created, optionally waits for it to be 'running'.
|
|
|
@ -230,7 +230,7 @@ def create_virtual_instance(module):
|
|
|
|
domain = module.params.get('domain'),
|
|
|
|
domain = module.params.get('domain'),
|
|
|
|
datacenter = module.params.get('datacenter')
|
|
|
|
datacenter = module.params.get('datacenter')
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
if instances:
|
|
|
|
if instances:
|
|
|
|
return False, None
|
|
|
|
return False, None
|
|
|
|
|
|
|
|
|
|
|
@ -308,7 +308,7 @@ def cancel_instance(module):
|
|
|
|
canceled = False
|
|
|
|
canceled = False
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
return False, None
|
|
|
|
return False, None
|
|
|
|
|
|
|
|
|
|
|
|
return canceled, None
|
|
|
|
return canceled, None
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|