diff --git a/doc/source/articles/policy_enf_dev.rst b/doc/source/articles/policy_enf_dev.rst index ba1f24586..db0aff91e 100644 --- a/doc/source/articles/policy_enf_dev.rst +++ b/doc/source/articles/policy_enf_dev.rst @@ -158,4 +158,4 @@ Transformed to these rules: Currently only one record for environment is created: -- ``murano:states+("uugi324", "PENDING")`` \ No newline at end of file +- ``murano:states+("uugi324", "pending")`` \ No newline at end of file diff --git a/murano/policy/congress_rules.py b/murano/policy/congress_rules.py index 1054150c6..0beae4fe0 100644 --- a/murano/policy/congress_rules.py +++ b/murano/policy/congress_rules.py @@ -41,7 +41,7 @@ class CongressRulesManager(object): r = PropertyRule(self._env_id, 'tenant_id', tenant_id) self._rules.append(r) - state_rule = StateRule(self._env_id, 'PENDING') + state_rule = StateRule(self._env_id, 'pending') self._rules.append(state_rule) self._walk(model, self._process_item) diff --git a/murano/tests/unit/policy/test_congress_rules.py b/murano/tests/unit/policy/test_congress_rules.py index d0d18698c..d77b1e1dd 100644 --- a/murano/tests/unit/policy/test_congress_rules.py +++ b/murano/tests/unit/policy/test_congress_rules.py @@ -225,5 +225,5 @@ class TestCongressRules(unittest.TestCase): rules_str = self._create_rules_str('model.yaml') self.assertTrue( - 'murano:states+("c86104748a0c4907b4c5981e6d3bce9f", "PENDING")' + 'murano:states+("c86104748a0c4907b4c5981e6d3bce9f", "pending")' in rules_str) \ No newline at end of file