Fix zuul fail due to sysinv method signature change

The sysinv method is no longer valid.
The code needs to be updated to accomodate the new
signature.

Test Plan:
 PASS: upload/apply a patch
 PASS: Apply a patch using NFV

Closes-Bug: #1983504
Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: I12a8defabc64155dd085f028b12c2d67bb52d99d
This commit is contained in:
Al Bailey 2022-08-03 19:05:38 +00:00
parent d71cb8b845
commit 0cada3c8ba
2 changed files with 6 additions and 4 deletions

View File

@ -14,7 +14,7 @@
# License for the specific language governing permissions and limitations
# under the License.
#
# Copyright (c) 2014-2017 Wind River Systems, Inc.
# Copyright (c) 2014-2022 Wind River Systems, Inc.
#
"""Policy Engine For Patching."""
@ -51,7 +51,8 @@ def init():
def _set_rules(data):
default_rule = "rule:admin_api"
policy.set_rules(policy.Rules.load_json(data, default_rule))
rules = policy.Rules.load_rules(data, default_rule, [])
policy.set_rules(rules)
def enforce(context, action, target, do_raise=True):

View File

@ -14,7 +14,7 @@
# License for the specific language governing permissions and limitations
# under the License.
#
# Copyright (c) 2014-2017 Wind River Systems, Inc.
# Copyright (c) 2014-2022 Wind River Systems, Inc.
#
"""Policy Engine For Patching."""
@ -52,7 +52,8 @@ def init():
def _set_rules(data):
default_rule = "rule:admin_api"
policy.set_rules(policy.Rules.load_json(data, default_rule))
rules = policy.Rules.load_rules(data, default_rule, [])
policy.set_rules(rules)
def enforce(context, action, target, do_raise=True):