Skip to content
Snippets Groups Projects
Commit 0df4d63a authored by gpotter2's avatar gpotter2 Committed by gpotter2
Browse files

Fix indent

parent 40ad5b67
No related branches found
No related tags found
No related merge requests found
...@@ -112,6 +112,7 @@ _VBS_WMI_OUTPUT = { ...@@ -112,6 +112,7 @@ _VBS_WMI_OUTPUT = {
def _exec_query_vbs(cmd, fields): def _exec_query_vbs(cmd, fields):
"""Execute a query using VBS. Currently Get-WmiObject queries are """Execute a query using VBS. Currently Get-WmiObject queries are
supported. supported.
""" """
if not WINDOWS: if not WINDOWS:
return return
...@@ -143,6 +144,7 @@ Next ...@@ -143,6 +144,7 @@ Next
def exec_query(cmd, fields): def exec_query(cmd, fields):
"""Execute a system query using PowerShell if it is available, and """Execute a system query using PowerShell if it is available, and
using VBS/cscript as a fallback. using VBS/cscript as a fallback.
""" """
if conf.prog.powershell is None: if conf.prog.powershell is None:
return _exec_query_vbs(cmd, fields) return _exec_query_vbs(cmd, fields)
...@@ -240,7 +242,6 @@ def get_windows_if_list(): ...@@ -240,7 +242,6 @@ def get_windows_if_list():
query = exec_query(['Get-NetAdapter'], query = exec_query(['Get-NetAdapter'],
['InterfaceDescription', 'InterfaceIndex', 'Name', ['InterfaceDescription', 'InterfaceIndex', 'Name',
'InterfaceGuid', 'MacAddress']) # It is normal that it is in this order 'InterfaceGuid', 'MacAddress']) # It is normal that it is in this order
else: else:
query = exec_query(['Get-WmiObject', 'Win32_NetworkAdapter'], query = exec_query(['Get-WmiObject', 'Win32_NetworkAdapter'],
['Name', 'InterfaceIndex', 'InterfaceDescription', ['Name', 'InterfaceIndex', 'InterfaceDescription',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment