opennode/opennode-console — Issue #57: Exception when using "edit" on a Compute in omsh
Author: livenson
Created: 2012-03-03 19:48:01+00:00
State: open

Editing of VM results in exeception:

```
john@oms:/machines/08298352-d6c7-480f-a726-510455677750# edit .
Command returned an unhandled error: not enough arguments for format string
type last_error for more details
john@oms:/machines/08298352-d6c7-480f-a726-510455677750# last_error
Error executing 'edit .': (, TypeError('not enough arguments for format string',), )
error type
Traceback (most recent call last):
File "/opt/oms/eggs/opennode.oms.core-0.0_1027_gd071-py2.7.egg/opennode/oms/endpoint/ssh/protocol.py", line 121, in spawn_command
yield deferred
File "/opt/oms/eggs/Twisted-11.1.0-py2.7-linux-i686.egg/twisted/internet/defer.py", line 1037, in _inlineCallbacks
result = result.throwExceptionIntoGenerator(g)
File "/opt/oms/eggs/Twisted-11.1.0-py2.7-linux-i686.egg/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
return g.throw(self.type, self.value, self.tb)
File "/opt/oms/eggs/opennode.oms.core-0.0_1027_gd071-py2.7.egg/opennode/oms/endpoint/ssh/cmd/base.py", line 24, in __call__
yield self.execute(parsed)
File "/opt/oms/eggs/Twisted-11.1.0-py2.7-linux-i686.egg/twisted/internet/defer.py", line 1039, in _inlineCallbacks
result = g.send(result)
File "/opt/oms/eggs/opennode.oms.core-0.0_1027_gd071-py2.7.egg/opennode/oms/endpoint/ssh/cmd/commands.py", line 829, in execute
old = IEditable(obj).toEditableString(descriptions=not args.n)
File "/opt/oms/eggs/opennode.oms.core-0.0_1027_gd071-py2.7.egg/opennode/oms/endpoint/ssh/editable.py", line 32, in toEditableString
pretty_value = ', '.join(['%s:%s' % i for i in value.items()])
TypeError: not enough arguments for format string
```