Merge pull request #2155 from jumpserver/dev

Dev
pull/2187/head 1.4.5
老广 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
1 changed files with 2 additions and 0 deletions

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):