You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# First we check the general structure. Otherwise we later cannot even iterate over it
159
158
try:
160
159
usage_scenario_schema.validate(usage_scenario)
161
160
exceptSchemaErrorase: # This block filters out the too long error message that include the parsing structure
162
-
iflen(e.autos) >2:
163
-
raiseSchemaError(e.autos[2:]) frome
164
-
raiseSchemaError(e.autos) frome
161
+
162
+
error_message=e.autos
163
+
164
+
iflen(e.autos) >=3:
165
+
error_message=e.autos[2:]
166
+
167
+
if'Wrong key'ine.code:
168
+
raiseSchemaError(f"Your compose file does contain a key that GMT does not support - Please check if the container will still run as intended. If you want to ignore this error you can add the attribute `ignore-unsupported-compose: true` to your usage_scenario.yml\nError: {error_message}") frome
169
+
170
+
raiseSchemaError(error_message) frome
165
171
166
172
167
173
# This check is necessary to do in a seperate pass. If tried to bake into the schema object above,
0 commit comments