Landreth is correct. A circumstance arose in testing where the 
transactionStatus key existed, but friendlyName did not. Being a bit 
unfamiliar with Python, this was my first attempt at a fix. I can change 
it to the recursive version if you prefer.

On 06/10/2013 04:13 PM, Kevin McDonald wrote:
>
> In SoftLayer/CLI/modules/cci.py:
>
> > @@ -117,8 +117,7 @@ def execute(client, args):
> >                  mb_to_gb(guest['maxMemory']),
> >                  guest['primaryIpAddress'] or blank(),
> >                  guest['primaryBackendIpAddress'] or blank(),
> > -                guest['activeTransaction']['transactionStatus']
> > -                ['friendlyName'] or blank(),
> > +                guest['activeTransaction']['transactionStatus'].get('friendlyName', blank()),
>
> Ah, you're right. Maybe it should recursively convert dicts to 
> NestedDicts? I had to make a to_dict() function to recursively convert 
> NestedDicts to dicts. This would be the opposite...
>
> https://github.com/softlayer/softlayer-api-python-client/blob/master/SoftLayer/utils.py#L20
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/softlayer/softlayer-api-python-client/pull/107/files#r4621751>.
>