From fbe4bb98345727d190cefcfb3ec54ad9075fba9d Mon Sep 17 00:00:00 2001 From: "RamaPrasad Amaranarayana (ra5425)" Date: Wed, 19 Sep 2018 17:40:40 -0400 Subject: Change Management Schedule Optimization Adding Robot Test Scripts for Change Management Schedule Optimization Change-Id: Id5edf9d3fb3c2390791362692c8b25f7607045c6 Issue-ID: OPTFRA-352 Signed-off-by: RamaPrasad Amaranarayana (ra5425) --- cmso-robot/robot/locallibrary/cmsoUtils/OSUtils.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 cmso-robot/robot/locallibrary/cmsoUtils/OSUtils.py (limited to 'cmso-robot/robot/locallibrary/cmsoUtils/OSUtils.py') diff --git a/cmso-robot/robot/locallibrary/cmsoUtils/OSUtils.py b/cmso-robot/robot/locallibrary/cmsoUtils/OSUtils.py new file mode 100644 index 0000000..78968f0 --- /dev/null +++ b/cmso-robot/robot/locallibrary/cmsoUtils/OSUtils.py @@ -0,0 +1,14 @@ +from sys import platform + +class OSUtils: + """ Utilities useful for constructing OpenStack HEAT requests """ + + def get_normalized_os(self): + os = platform + if platform == "linux" or platform == "linux2": + os = 'linux64' + elif platform == "darwin": + os = 'mac64' + elif platform == "win32": + os = platform + return os -- cgit 1.2.3-korg