Revision 1f47fbe3 snf-pithos-app/pithos/api/management/commands/reconcile-resources-pithos.py

b/snf-pithos-app/pithos/api/management/commands/reconcile-resources-pithos.py
85 85

  
86 86
            # Get holding from Quotaholder
87 87
            try:
88
                qh_result = backend.astakosclient.service_get_quotas(
89
                    backend.service_token, userid)
88
                qh_result = backend.astakosclient.service_get_quotas(userid)
90 89
            except NotFound:
91 90
                self.stdout.write(
92 91
                    "User '%s' does not exist in Quotaholder!\n" % userid)
......
141 140
                    request['name'] = "RECONCILE"
142 141
                    request['provisions'] = map(create_provision, unsynced)
143 142
                    try:
144
                        backend.astakosclient.issue_commission(
145
                            backend.service_token, request)
143
                        backend.astakosclient.issue_commission(request)
146 144
                    except QuotaLimit:
147 145
                        self.stdout.write(
148 146
                            "Reconciling failed because a limit has been "
......
156 154
                    " reconcile-commissions-pithos'\n")
157 155
            elif not (unsynced or unknown_user_exists):
158 156
                self.stdout.write("Everything in sync.\n")
159
        except:
157
        except BaseException as e:
160 158
            backend.post_exec(False)
159
            self.stdout.write(str(e) + "\n")
161 160
        else:
162 161
            backend.post_exec(True)
163 162
        finally:

Also available in: Unified diff