summaryrefslogtreecommitdiffstats
path: root/cmso-robot/robot/locallibrary/cmsoUtils/OSUtils.py
blob: 78968f030ab5972c9d3a80071a3eed1e38423629 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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