def _translate_detail_keys(cons):
 pool = cons['pool']
 info = {'id': cons['id'], 'console_type': pool['console_type'], 'password': cons['password'], 'instance_name': cons['instance_name'], 'port': cons['port'], 'host': pool['public_hostname']}
 return dict(console=info)

def _translate_detail_keys ( cons ) : pool = cons [ 'pool' ] info = { 'id' : cons [ 'id' ] , 'console_type' : pool [ 'console_type' ] , 'password' : cons [ 'password' ] , 'instance_name' : cons [ 'instance_name' ] , 'port' : cons [ 'port' ] , 'host' : pool [ 'public_hostname' ] } return dict ( console = info )
coerces a console instance into proper dictionary format with detail .