Skip to content

Commit

Permalink
Fixed parameter used for format string in CIM exception raised in moc…
Browse files Browse the repository at this point in the history
…k support.

A CIMError exception raised in the mocked ModifyInstance operation specified
`p.name` when `p` was actually already a string with the property name.

Signed-off-by: Andreas Maier <andreas.r.maier@gmx.de>
  • Loading branch information
andy-maier committed May 16, 2018
1 parent 836c3a8 commit 19245c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pywbem_mock/_wbemconnection_mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -2050,7 +2050,7 @@ def _fake_modifyinstance(self, namespace, **params):
if p in modified_instance:
raise CIMError(CIM_ERR_INVALID_PARAMETER,
'ModifyInstance cannot modify key property %s' %
(p.name))
p)

# remove any properties from modified instance not in the property_list
if property_list:
Expand Down

0 comments on commit 19245c0

Please sign in to comment.