mirror of https://github.com/jumpserver/jumpserver
commit
0f61b36bff
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue