add account id in osimage facts
This commit is contained in:
@@ -522,8 +522,9 @@ def main():
|
|||||||
decon.validated_image_id = decort_osimage.decort_osimage_package_facts(image_facts)['id']
|
decon.validated_image_id = decort_osimage.decort_osimage_package_facts(image_facts)['id']
|
||||||
|
|
||||||
|
|
||||||
elif amodule.params['state'] == "absent" and amodule.params['image_name'] or \
|
elif amodule.params['state'] == "absent":
|
||||||
amodule.params['image_id'] and decort_osimage.decort_osimage_package_facts(image_facts)['accountId'] == amodule.params['account_Id']:
|
if amodule.params['image_name'] or amodule.params['image_id'] and\
|
||||||
|
decort_osimage.decort_osimage_package_facts(image_facts)['accountId'] == amodule.params['account_Id']:
|
||||||
amodule.image_id_delete = decon.validated_image_id
|
amodule.image_id_delete = decon.validated_image_id
|
||||||
decort_osimage.decort_image_delete(decon,amodule)
|
decort_osimage.decort_image_delete(decon,amodule)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user