qvm-template: Check that template spec is not "---".
This commit is contained in:
parent
40e7304f17
commit
a9a19428f3
@ -188,7 +188,8 @@ def qrexec_popen(args, app, service, stdout=subprocess.PIPE, filter_esc=True):
|
|||||||
def qrexec_payload(args, app, spec, refresh):
|
def qrexec_payload(args, app, spec, refresh):
|
||||||
_ = app # unused
|
_ = app # unused
|
||||||
|
|
||||||
# TODO: Check that spec != '---'
|
if spec == '---':
|
||||||
|
parser.error("Malformed template name: argument should not be '---'.")
|
||||||
|
|
||||||
def check_newline(string, name):
|
def check_newline(string, name):
|
||||||
if '\n' in string:
|
if '\n' in string:
|
||||||
|
Loading…
Reference in New Issue
Block a user