3cef984de9
Base class for modify actions. Entry points based action registration. Action manager loads and execute actions. Out-of-the-box actions implementation. Partially implements: blueprint policy-based-env-modification Change-Id: Ib148c5f2b7efb1186d77f5461ef9324cca1287c2
8 lines
1.0 KiB
Plaintext
8 lines
1.0 KiB
Plaintext
missing_key("")
|
|
invalid_flavor_name("really.bad.flavor")
|
|
predeploy_errors(eid, obj_id, msg):-murano:objects(obj_id, pid, type), murano_env_of_object(obj_id, eid), murano:properties(obj_id, "flavor", flavor_name), invalid_flavor_name(flavor_name), murano:properties(obj_id, "name", obj_name), concat(obj_name, ": bad flavor", msg)
|
|
predeploy_errors(eid, obj_id, msg):-murano:objects(obj_id, pid, type), murano_env_of_object(obj_id, eid), murano:properties(obj_id, "keyname", key_name), missing_key(key_name), murano:properties(obj_id, "name", obj_name), concat(obj_name, ": missing key", msg)
|
|
murano_env_of_object(oid,eid):-murano:connected(eid,oid), murano:objects(eid,tid,"io.murano.Environment")
|
|
bad_flavor_synonyms("horrible.flavor")
|
|
predeploy_modify(eid, obj_id, action):-murano:objects(obj_id, pid, type), murano_env_of_object(obj_id, eid), murano:properties(obj_id, "flavor", flavor_name), bad_flavor_synonyms(flavor_name), concat("set-property: {object_id: ", obj_id, first_part ), concat(first_part, ", prop_name: flavor, value: really.bad.flavor}", action)
|