diff options
author | Andy Lutomirski <luto@kernel.org> | 2020-07-20 16:32:14 -0700 |
---|---|---|
committer | Andy Lutomirski <luto@kernel.org> | 2020-07-20 16:32:14 -0700 |
commit | 88cd30f073714bd097d83bc7a6b028c0e4bf7a2b (patch) | |
tree | 19dbc48a421dab81ff2309b615930ac8a0fc40ac | |
parent | c90cf150e65dba93536f584e852dcee7d288800d (diff) | |
download | virtme-88cd30f073714bd097d83bc7a6b028c0e4bf7a2b.tar.gz |
Minor sanitize_disk_args() cleanup
'foo %s bar' % (baz) doesn't need parentheses.
Signed-off-by: Andy Lutomirski <luto@kernel.org>
-rw-r--r-- | virtme/commands/run.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/virtme/commands/run.py b/virtme/commands/run.py index d900b41..f9ee4dd 100644 --- a/virtme/commands/run.py +++ b/virtme/commands/run.py @@ -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)) |