Merge pull request #2155 from jumpserver/dev

Dev
This commit is contained in:
老广 2018-12-12 18:04:27 +08:00 committed by GitHub
commit 0f61b36bff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -165,6 +165,8 @@ class AdHocRunner:
)
def clean_args(self, module, args):
if not args:
return ''
if module not in self.command_modules_choices:
return args
if isinstance(args, str):