Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mposluszny-splunk committed Sep 27, 2024
1 parent d17cad4 commit 64822a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions winrm_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,9 @@ def _create_ps_script(self, action_result, args, whitelist_args=set(), cmd_prefi
# "For your convenience" you can also pass it a list of strings and dicts, something like [val1, {"val2": "asdf"}, foo],
# which will generate a string like "-val1 -val2 asdf -foo".
# Perhaps the name is a bit misleading, but this really only for creating one line of a script
if type(args) == dict:
if isinstance(args, dict):
args = [args]
if type(args) != list:
if not isinstance(args, list):
raise TypeError("Args Must be of type list or dict")
arg_str = ""
for arg in args:
Expand Down

0 comments on commit 64822a2

Please sign in to comment.