Initial injection of decort_pfw and collateral changes to other modules

This commit is contained in:
Sergey Shubin svs1370
2020-05-28 00:59:52 +03:00
parent e5e6db6586
commit 125ebb1fb8
4 changed files with 479 additions and 163 deletions

View File

@@ -241,7 +241,7 @@ from ansible.module_utils.decort_utils import *
def decort_disk_package_facts(disk_facts, check_mode=False):
"""Package a dictionary of disk facts according to the decort_vins module specification.
"""Package a dictionary of disk facts according to the decort_disk module specification.
This dictionary will be returned to the upstream Ansible engine at the completion of
the module run.
@@ -329,13 +329,6 @@ def decort_disk_parameters():
workflow_context=dict(type='str', required=False),
)
# Workflow digest:
# 1) authenticate to DECORT controller & validate authentication by issuing API call - done when creating DECORTController
# 2) check if the ViNS with this id or name exists under specified account / resource group
# 3) if ViNS does not exist -> deploy
# 4) if ViNS exists: check desired state, desired configuration -> initiate action(s) accordingly
# 5) report result to Ansible
def main():
module_parameters = decort_disk_parameters()