BUGFIX: emulator compared parameter with value

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
remotes/origin/feature_files_export
Nico Schottelius 13 years ago
parent d5df740f17
commit df84480fcc
  1. 6
      lib/cdist/emulator.py

@ -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…
Cancel
Save