Merge pull request #26003 from cachedout/lint_25935

Lint #25935
This commit is contained in:
Mike Place 2015-08-04 09:59:04 -06:00
commit e52d1c6e41

View File

@ -2509,7 +2509,7 @@ def powershell(cmd,
python_shell = True python_shell = True
# Append PowerShell Object formatting # Append PowerShell Object formatting
cmd = "%s | ConvertTo-Json -Depth 32" % cmd cmd = '{0} | ConvertTo-Json -Depth 32'.format(cmd)
# Retrieve the response, while overriding shell with 'powershell' # Retrieve the response, while overriding shell with 'powershell'
response = run(cmd, response = run(cmd,
@ -2534,6 +2534,6 @@ def powershell(cmd,
try: try:
return json.loads(response) return json.loads(response)
except: except Exception:
log.error("Error converting PowerShell JSON return", exc_info=True) log.error("Error converting PowerShell JSON return", exc_info=True)
return {} return {}