File tree Expand file tree Collapse file tree 2 files changed +4
-13
lines changed Expand file tree Collapse file tree 2 files changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -163,15 +163,9 @@ def get_win_version_and_platform(self, stats):
163
163
os_version = platform .win32_ver ()
164
164
# if the python version is 32 bit perhaps the windows operating
165
165
# system is 64bit
166
- conditions = [
167
- stats ['platform' ] == '32bit' ,
168
- 'PROCESSOR_ARCHITEW6432' in os .environ
169
- ]
166
+ conditions = [stats ['platform' ] == '32bit' , 'PROCESSOR_ARCHITEW6432' in os .environ ]
170
167
171
- return {
172
- 'os_version' : ' ' .join (os_version [::2 ]),
173
- 'platform' : '64bit' if all (conditions ) else stats ['platform' ]
174
- }
168
+ return {'os_version' : ' ' .join (os_version [::2 ]), 'platform' : '64bit' if all (conditions ) else stats ['platform' ]}
175
169
176
170
def get_linux_version_and_distro (self ):
177
171
try :
@@ -184,10 +178,7 @@ def get_linux_version_and_distro(self):
184
178
else :
185
179
distro = ' ' .join (linux_distro [:2 ])
186
180
187
- return {
188
- 'os_version' : platform .release (),
189
- 'linux_distro' : distro
190
- }
181
+ return {'os_version' : platform .release (), 'linux_distro' : distro }
191
182
192
183
def get_stats_from_std_sys_lib (self , stats ):
193
184
stats ['os_name' ] = platform .system ()
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class VmExtension:
31
31
32
32
def __init__ (self ):
33
33
if import_multipass_error_tag :
34
- raise Exception (f"Multipass binary ({ MULTIPASS_PATH } )is mandatory to get Vm stats" )
34
+ raise Exception (f"Multipass binary ({ MULTIPASS_PATH } ) is mandatory to get VM stats" )
35
35
36
36
self .ext_name = "Multipass (Vm)"
37
37
You can’t perform that action at this time.
0 commit comments