Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Key error when using lookupByClass('vzBrCP') #125

Open
erjosito opened this issue Jul 4, 2016 · 0 comments
Open

Key error when using lookupByClass('vzBrCP') #125

erjosito opened this issue Jul 4, 2016 · 0 comments

Comments

@erjosito
Copy link

erjosito commented Jul 4, 2016

Hi there,

I am trying to get a list of all contracts in ACI using lookupByClass('vzBrCP'), but I am getting the following error:

Traceback (most recent call last): File "./showcontract.py", line 61, in <module> main() File "./showcontract.py", line 58, in main searchContracts (moDir) File "./showcontract.py", line 40, in searchContracts mo = moDir.lookupByClass(moClass) File "/Library/Python/2.7/site-packages/acicobrasdk.egg/cobra/mit/access.py", line 82, in lookupByClass mos = self.query(classQuery) File "/Library/Python/2.7/site-packages/acicobrasdk.egg/cobra/mit/access.py", line 49, in query return self._accessImpl.get(queryObject) File "/Library/Python/2.7/site-packages/acicobrasdk.egg/cobra/internal/rest/accessimpl.py", line 159, in get return self.__parseResponse(rsp) File "/Library/Python/2.7/site-packages/acicobrasdk.egg/cobra/internal/rest/accessimpl.py", line 182, in __parseResponse return fromXMLStr(rsp.text) File "/Library/Python/2.7/site-packages/acicobrasdk.egg/cobra/internal/codec/xmlcodec.py", line 30, in fromXMLStr return _fromXMLRootNode(xmlRootNode) File "/Library/Python/2.7/site-packages/acicobrasdk.egg/cobra/internal/codec/xmlcodec.py", line 23, in _fromXMLRootNode mo = _createMo(moNode, None) File "/Library/Python/2.7/site-packages/acicobrasdk.egg/cobra/internal/codec/xmlcodec.py", line 60, in _createMo mo = pyClass(parentMoOrDn, *namingVals, markDirty=False, **moProps) File "/Library/Python/2.7/site-packages/acicobramodel.egg/cobra/model/vz.py", line 1423, in __init__ Mo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps) File "/Library/Python/2.7/site-packages/acicobrasdk.egg/cobra/mit/mo.py", line 15, in __init__ BaseMo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps) File "/Library/Python/2.7/site-packages/acicobrasdk.egg/cobra/internal/base/moimpl.py", line 226, in __init__ propMeta = props[name] File "/Library/Python/2.7/site-packages/acicobrasdk.egg/cobra/mit/meta.py", line 152, in __getitem__ return self._props[propName] KeyError: 'targetDscp'

Any hint?

Thanks!
Jose

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant