sv764t | 8bf4998 | 2018-10-25 01:42:52 -0400 | [diff] [blame^] | 1 | from sys import platform |
2 | |||||
3 | class OSUtils: | ||||
4 | """ Utilities useful for constructing OpenStack HEAT requests """ | ||||
5 | |||||
6 | def get_normalized_os(self): | ||||
7 | os = platform | ||||
8 | if platform == "linux" or platform == "linux2": | ||||
9 | os = 'linux64' | ||||
10 | elif platform == "darwin": | ||||
11 | os = 'mac64' | ||||
12 | elif platform == "win32": | ||||
13 | os = platform | ||||
14 | return os |