racker/rackspace-monitoring-cli — Issue #2: Failing to show the resource url after create
Author: ddispaltro
Created: 2011-12-21 03:03:06+00:00
State: open

Interpreting the resource url is failing

```
$ raxmon-entities-create --label=cmbeta --ip-addresses="eth0=50.57.207.69"
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/simplejson-2.0.9-py2.6-macosx-10.6-i386.egg/simplejson/_speedups.py:3: UserWarning: Module paramiko was already imported from /Library/Python/2.6/site-packages/Fabric-0.9.0-py2.6.egg/paramiko/__init__.pyc, but /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages is being added to sys.path
Traceback (most recent call last):
File "/Library/Python/2.6/site-packages/raxmon_cli/common.py", line 101, in run_action
callback(instance, options, args, done)
File "/usr/local/bin/raxmon-entities-create", line 33, in callback
metadata=options.metadata)
File "/Library/Python/2.6/site-packages/rackspace_monitoring/drivers/rackspace.py", line 594, in create_entity
return self._create("/entities", data=data, coerce=self.get_entity)
File "/Library/Python/2.6/site-packages/rackspace_monitoring/drivers/rackspace.py", line 269, in _create
obj_ids = self._url_to_obj_ids(location)
File "/Library/Python/2.6/site-packages/rackspace_monitoring/drivers/rackspace.py", line 251, in _url_to_obj_ids
key = self._plural_to_singular(chunks[i]) + '_id'
File "/Library/Python/2.6/site-packages/rackspace_monitoring/drivers/rackspace.py", line 237, in _plural_to_singular
return kv[name]
KeyError: ''

```