qvm-template: Check that template spec is not "---".

Этот коммит содержится в:
WillyPillow 2020-08-01 03:05:21 +08:00
родитель 40e7304f17
Коммит a9a19428f3
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 3839E194B1415A9C

Просмотреть файл

@ -188,7 +188,8 @@ def qrexec_popen(args, app, service, stdout=subprocess.PIPE, filter_esc=True):
def qrexec_payload(args, app, spec, refresh):
_ = app # unused
# TODO: Check that spec != '---'
if spec == '---':
parser.error("Malformed template name: argument should not be '---'.")
def check_newline(string, name):
if '\n' in string: