Revision 16f2673e snf-pithos-app/pithos/api/management/commands/reconcile-resources-pithos.py

b/snf-pithos-app/pithos/api/management/commands/reconcile-resources-pithos.py
99 99
                size = backend.node.node_account_usage(node, CLUSTER_NORMAL)
100 100
                db_usage[path] = size or 0
101 101

  
102
            result = backend.quotaholder.service_get_quotas(
103
                backend.quotaholder_token,
102
            result = backend.astakosclient.service_get_quotas(
103
                backend.service_token,
104 104
            )
105 105

  
106 106
            qh_usage = {}
......
149 149
                request['auto_accept'] = True
150 150
                request['provisions'] = provisions
151 151
                try:
152
                    serial = backend.quotaholder.issue_commission(
153
                        backend.quotaholder_token, request
152
                    serial = backend.astakosclient.issue_commission(
153
                        backend.service_token, request
154 154
                    )
155 155
                except AstakosClientException, e:
156 156
                    self.stdout.write(e.details)
157 157
                else:
158
                    backend.quotaholder_serials.insert_many([serial])
158
                    backend.commission_serials.insert_many([serial])
159 159
            elif options['list'] and table:
160 160
                output_format = options["output_format"]
161 161
                if output_format != "json" and not options["headers"]:

Also available in: Unified diff