File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2194,16 +2194,14 @@ def add_virtual_machine(self, obj):
21942194
21952195 detailed_data_key , detailed_data_value = detailed_data_item .split ("=" )
21962196 detailed_data_dict [detailed_data_key ] = detailed_data_value .strip ("'" )
2197- if len (detailed_data_dict .get ("prettyName" ,"" )) > 0 :
2197+ if len (detailed_data_dict .get ("prettyName" , "" )) > 0 :
21982198 platform = detailed_data_dict .get ("prettyName" )
21992199
22002200 distro_version = detailed_data_dict .get ("distroVersion" )
2201- if detailed_data_dict .get ("familyName" , "" ).lower () == "linux" and distro_version :
2202- if distro_version not in platform :
2203- platform = f'{ platform } { distro_version } '
2204- if platform is not None :
2205- platform = self .get_object_relation (platform , "vm_platform_relation" , fallback = platform )
2206-
2201+ if detailed_data_dict .get ("familyName" , "" ).lower () == "linux" and \
2202+ distro_version is not None and \
2203+ distro_version not in platform :
2204+ platform = f'{ platform } { distro_version } '
22072205
22082206 if platform is not None :
22092207 platform = self .get_object_relation (platform , "vm_platform_relation" , fallback = platform )
You can’t perform that action at this time.
0 commit comments