Revision 1fb0fdda snf-cyclades-app/synnefo/api/management/commands/server-show.py

b/snf-cyclades-app/synnefo/api/management/commands/server-show.py
61 61
            image_name = "None"
62 62
        image = '%s (%s)' % (imageid, image_name)
63 63

  
64
	usercache = UserCache(ASTAKOS_BASE_URL, ASTAKOS_TOKEN)
64
        usercache = UserCache(ASTAKOS_BASE_URL, ASTAKOS_TOKEN)
65 65
        kv = {
66
          'id': server.id,
67
          'name': server.name,
68
          'owner_uuid': userid,
69
          'owner_name': usercache.get_name(userid),
70
          'created': utils.format_date(server.created),
71
          'updated': utils.format_date(server.updated),
72
          'image': image,
73
          'host id': server.hostid,
74
          'flavor': flavor,
75
          'deleted': utils.format_bool(server.deleted),
76
          'suspended': utils.format_bool(server.suspended),
77
          'state': format_vm_state(server),
66
            'id': server.id,
67
            'name': server.name,
68
            'owner_uuid': userid,
69
            'owner_name': usercache.get_name(userid),
70
            'created': utils.format_date(server.created),
71
            'updated': utils.format_date(server.updated),
72
            'image': image,
73
            'host id': server.hostid,
74
            'flavor': flavor,
75
            'deleted': utils.format_bool(server.deleted),
76
            'suspended': utils.format_bool(server.suspended),
77
            'state': format_vm_state(server),
78
            'task': server.task,
79
            'task_job_id': server.task_job_id,
78 80
        }
79 81

  
80 82
        utils.pprint_table(self.stdout, [kv.values()], kv.keys(),

Also available in: Unified diff