From 2c928736fbcdc63fc9e5f01605e45793cd4586f7 Mon Sep 17 00:00:00 2001 From: Moul Date: Wed, 17 Feb 2016 18:46:40 +0100 Subject: [PATCH] [enh] Handle 'user' type for key name 'user' and 'admin'. --- package_checker.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package_checker.py b/package_checker.py index 38d6ee7..9f091ac 100755 --- a/package_checker.py +++ b/package_checker.py @@ -85,14 +85,15 @@ def check_manifest(manifest): print_wrong(manifest["services"][i] + " service doesn't exist") i+=1 if "install" in manifest["arguments"]: - types = ("domain", "path", "password") + types = ("user", "domain", "path", "password", "user", "admin") i = 0 while (i < len(types)): j = 0 while (j < len(manifest["arguments"]["install"])): if types[i] == manifest["arguments"]["install"][j]["name"]: if "type" not in manifest["arguments"]["install"][j]: - print("You should specify " + types[i] + " type: \"type\": \"" + types[i] + "\",") + print("You should specify the type of the key with", end =" ") + print(types[i - 1]) if i == 5 else print(types[i]) j+=1 i+=1