Do not require profiles to be specified for 'up'

This allows to up profiles that are only available on disk.
This commit is contained in:
Till Maas 2018-07-31 16:43:56 +02:00
parent 382c34197b
commit d76ac65581

View file

@ -981,17 +981,6 @@ class ArgValidator_ListConnections(ArgValidatorList):
def _validate_post(self, value, name, result):
for idx, connection in enumerate(result):
if connection["state"] in ["up"]:
if connection["state"] == "up" and "type" in connection:
pass
elif not ArgUtil.connection_find_by_name(
connection["name"], result, idx
):
raise ValidationError(
name + "[" + str(idx) + "].name",
"state '%s' references non-existing connection '%s'"
% (connection["state"], connection["name"]),
)
if "type" in connection:
if connection["master"]:
c = ArgUtil.connection_find_by_name(