Skip to content
Snippets Groups Projects
Commit 6b96b84c authored by debora.benedetto@hpe.com's avatar debora.benedetto@hpe.com
Browse files

bugfix operating system exaction

parent f943e0eb
Branches
No related tags found
No related merge requests found
---
iac:
- terraform
- ansible
...
\ No newline at end of file
...@@ -4,7 +4,9 @@ from plugin.PluginException import PluginResourceNotFoundError ...@@ -4,7 +4,9 @@ from plugin.PluginException import PluginResourceNotFoundError
def clean_operating_system_name(operating_system): def clean_operating_system_name(operating_system):
if "ubuntu" in operating_system: operating_system_lower_case = operating_system.lower()
logging.info(f"AnsiblePlugin: extracting operating system from {operating_system}")
if "ubuntu" in operating_system_lower_case:
return "ubuntu" return "ubuntu"
else: else:
raise PluginResourceNotFoundError(plugin_name="AnsiblePlugin", resource_name="operating system") raise PluginResourceNotFoundError(plugin_name="AnsiblePlugin", resource_name="operating system")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment