Specify what to do if endpoint map environment don't match
authorJuan Antonio Osorio Robles <jaosorior@redhat.com>
Tue, 24 Jan 2017 18:25:53 +0000 (20:25 +0200)
committerJuan Antonio Osorio Robles <jaosorior@redhat.com>
Tue, 24 Jan 2017 18:25:53 +0000 (20:25 +0200)
this attempts to make the error message more useful. This error message
happens if the environment files containing endpoint map overrides
haven't been updated to match the base endpoint map (or the defaults).

Change-Id: If53d3a9d7848aed62ebb235afe8b14c18d1b284d

tools/yaml-validate.py

index 63e3ce5..19e40d1 100755 (executable)
@@ -196,8 +196,8 @@ if base_endpoint_map and \
         matches = validate_endpoint_map(base_endpoint_map,
                                         env_endpoint_map['map'])
         if not matches:
-            print("ERROR: %s doesn't match base endpoint map" %
-                  env_endpoint_map['file'])
+            print("ERROR: %s needs to be updated to match changes in base "
+                  "endpoint map" % env_endpoint_map['file'])
             failed_files.append(env_endpoint_map['file'])
             exit_val |= 1
         else: