9.0.0
This commit is contained in:
@@ -26,7 +26,7 @@ class decort_osimage(DecortController):
|
||||
if amodule.params['account_name']:
|
||||
self.validated_account_id, _ = self.account_find(amodule.params['account_name'])
|
||||
else:
|
||||
self.validated_account_id = amodule.params['account_Id']
|
||||
self.validated_account_id = amodule.params['account_id']
|
||||
|
||||
if self.validated_account_id == 0:
|
||||
# we failed either to find or access the specified account - fail the module
|
||||
@@ -129,7 +129,7 @@ class decort_osimage(DecortController):
|
||||
hot_resize=hot_resize,
|
||||
username=amodule.params['image_username'],
|
||||
password=amodule.params['image_password'],
|
||||
account_Id=self.validated_account_id,
|
||||
account_id=self.validated_account_id,
|
||||
usernameDL=amodule.params['usernameDL'],
|
||||
passwordDL=amodule.params['passwordDL'],
|
||||
sepId=amodule.params['sepId'],
|
||||
@@ -156,7 +156,11 @@ class decort_osimage(DecortController):
|
||||
|
||||
def decort_virt_image_create(self,amodule):
|
||||
# function that creates a virtual image
|
||||
image_facts = self.virt_image_create(name=amodule.params['virt_name'], targetId=self.target_image_id)
|
||||
image_facts = self.virt_image_create(
|
||||
name=amodule.params['virt_name'],
|
||||
target_id=self.target_image_id,
|
||||
account_id=self.aparams['account_id'],
|
||||
)
|
||||
image_id, image_facts = decort_osimage.decort_virt_image_find(self, amodule)
|
||||
self.result['facts'] = decort_osimage.decort_osimage_package_facts(image_facts, amodule.check_mode)
|
||||
return image_id, image_facts
|
||||
@@ -244,7 +248,7 @@ class decort_osimage(DecortController):
|
||||
account_name=dict(
|
||||
type='str',
|
||||
),
|
||||
account_Id=dict(
|
||||
account_id=dict(
|
||||
type='int',
|
||||
),
|
||||
image_name=dict(
|
||||
|
||||
Reference in New Issue
Block a user