diff options
author | Gary Wu <gary.i.wu@huawei.com> | 2018-11-02 00:13:27 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-11-02 00:13:27 +0000 |
commit | bbfb8ee3e7ffdd69ac4173acb1bbb06dee0842f9 (patch) | |
tree | d8bf9c8a4dd90768fe332630d047a154360debfd /tests/optf-cmso/cmso/attlibs/OSUtils.py | |
parent | 6b94dbdcf230c1f880f76ffd8224a5ef5c9222e9 (diff) | |
parent | 8bf49988b7d6af5fdb48b5d2c1f830fbe318e83a (diff) |
Merge "Change Management Schedule Optimization"
Diffstat (limited to 'tests/optf-cmso/cmso/attlibs/OSUtils.py')
-rw-r--r-- | tests/optf-cmso/cmso/attlibs/OSUtils.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/optf-cmso/cmso/attlibs/OSUtils.py b/tests/optf-cmso/cmso/attlibs/OSUtils.py new file mode 100644 index 00000000..78968f03 --- /dev/null +++ b/tests/optf-cmso/cmso/attlibs/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 |