Skip to content

Commit

Permalink
Minor sanitize_disk_args() cleanup
Browse files Browse the repository at this point in the history
'foo %s bar' % (baz) doesn't need parentheses.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
  • Loading branch information
amluto committed Jul 20, 2020
1 parent c90cf15 commit 88cd30f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtme/commands/run.py
Expand Up @@ -263,7 +263,7 @@ def quote_karg(arg: str) -> str:
def sanitize_disk_args(func: str, arg: str) -> Tuple[str, str]:
namefile = arg.split('=', 1)
if len(namefile) != 2:
arg_fail('invalid argument to %s' % (func))
arg_fail('invalid argument to %s' % func)
name, fn = namefile
if '=' in fn or ',' in fn:
arg_fail("%s filenames cannot contain '=' or ','" % (func))
Expand Down

0 comments on commit 88cd30f

Please sign in to comment.