2
0
mirror of https://github.com/openkmip/pykmip synced 2025-12-20 10:13:18 +00:00

Fix a bug with attribute index handling in ModifyAttribute

This changes fixes a minor bug with proper attribute index range
checking in the server implementation of ModifyAttribute. A corner
case that previously slipped through index checking and testing
has been closed. An existing unit test has been modified to fix
this bug.

Partially implements #547
This commit is contained in:
Peter Hamilton
2019-12-13 14:09:10 -05:00
committed by Peter Hamilton
parent e5281cbd35
commit cd8d66fe91
2 changed files with 2 additions and 2 deletions

View File

@@ -4975,7 +4975,7 @@ class TestKmipEngine(testtools.TestCase):
attribute=attribute_factory.create_attribute(
enums.AttributeType.NAME,
"Modified Name",
index=3
index=1
)
),
)