Skip to content

key: 'KEY' object is not iterable #53

@vaglomangirish

Description

@vaglomangirish

I hit this issue when getting the cm key default command working.

(ENV)[mangirish@MangoLap client]$ cm key default
{'--all': False,
'--dir': '~/.ssh',
'--format': 'table',
'--git': False,
'--help': False,
'--name': None,
'--select': False,
'--source': 'db',
'--ssh': False,
'--username': 'none',
'-f': False,
'-h': False,
'FILENAME': None,
'KEYNAME': None,
'NAME': None,
'add': False,
'default': True,
'delete': False,
'get': False,
'list': False}
default
DEFAULT KEY: <cloudmesh_client.db.model.KEY object at 0x4ade7d0>
Traceback (most recent call last):
File "/home/mangirish/ENV/lib/python2.7/site-packages/cloudmesh_client/shell/plugins/KeyCommand.py", line 356, in do_key
default_dict = sshdb.object_to_dict(default_key)
File "/home/mangirish/ENV/lib/python2.7/site-packages/cloudmesh_client/db/SSHKeyDBManager.py", line 148, in object_to_dict
return self.db.object_to_dict(obj)
File "/home/mangirish/ENV/lib/python2.7/site-packages/cloudmesh_client/db/CloudmeshDatabase.py", line 125, in object_to_dict
for u in obj:
TypeError: 'KEY' object is not iterable

'KEY' object is not iterable
ERROR: Default key retrieval failed.

Apparently, when you try applying object_to_dict on KEY, it reports not iterable.

This requires further investigation.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions