forked from ungleich-public/cdist
BUGFIX: emulator compared parameter with value
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
d5df740f17
commit
df84480fcc
1 changed files with 3 additions and 3 deletions
|
@ -105,11 +105,11 @@ def emulator(argv):
|
|||
sys.exit(1)
|
||||
else:
|
||||
param_fd = open(file, "r")
|
||||
param_old = param_fd.readlines()
|
||||
value_old = param_fd.readlines()
|
||||
param_fd.close()
|
||||
|
||||
if(param_old != param):
|
||||
print("Parameter " + param + " differs: " + " ".join(param_old) + " vs. " + param)
|
||||
if(value_old != value):
|
||||
print("Parameter " + param + " differs: " + " ".join(value_old) + " vs. " + value)
|
||||
print("Sources: " + " ".join(old_object_source) + " and " + object_source)
|
||||
sys.exit(1)
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue