Revision 3524241a snf-cyclades-app/synnefo/logic/management/commands/server-inspect.py

b/snf-cyclades-app/synnefo/logic/management/commands/server-inspect.py
39 39
from synnefo.api.util import get_image
40 40
from synnefo.lib.utils import merge_time
41 41
from synnefo.db.models import VirtualMachine
42
from synnefo.util.rapi import GanetiApiError
42
from synnefo.logic.rapi import GanetiApiError
43 43

  
44 44

  
45 45
# Fields to print from a gnt-instance info
......
101 101
            self.stdout.write("nic/%d: IPv4: %s, MAC: %s, IPv6:%s,  Network: %s\n"\
102 102
                              % (nic.index, nic.ipv4, nic.mac, nic.ipv6,  nic.network))
103 103

  
104
        client = vm.backend.client
104
        client = vm.get_client()
105 105
        try:
106 106
            g_vm = client.GetInstance(vm.backend_vm_id)
107 107
        except GanetiApiError as e:
......
148 148
                    except KeyError:
149 149
                        pass
150 150
                self.stdout.write('\n' + sep)
151
        # Return the RAPI client to pool
152
        vm.put_client(client)

Also available in: Unified diff