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:
parent
d71cb8b845
commit
0cada3c8ba
@ -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):
|
||||
|
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user