Unverified Commit 0f61b36b authored by 老广's avatar 老广 Committed by GitHub

Merge pull request #2155 from jumpserver/dev

Dev
parents dbc2779b 55ff8254
...@@ -165,6 +165,8 @@ class AdHocRunner: ...@@ -165,6 +165,8 @@ class AdHocRunner:
) )
def clean_args(self, module, args): def clean_args(self, module, args):
if not args:
return ''
if module not in self.command_modules_choices: if module not in self.command_modules_choices:
return args return args
if isinstance(args, str): if isinstance(args, str):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment