Revision 73fbe301 snf-pithos-backend/pithos/backends/modular.py

b/snf-pithos-backend/pithos/backends/modular.py
125 125
            self.wrapper.commit()
126 126
            return ret
127 127
        except:
128
            self.quotaholder.reject_commission(
129
                        context     =   {},
130
                        clientkey   =   'pithos',
131
                        serials     =   serials)
128
            if serials:
129
                self.quotaholder.reject_commission(
130
                            context     =   {},
131
                            clientkey   =   'pithos',
132
                            serials     =   serials)
132 133
            self.wrapper.rollback()
133 134
            raise
134 135
    return fn
......
1263 1264
                              account, QUEUE_INSTANCE_ID, 'diskspace',
1264 1265
                              float(size), details))
1265 1266

  
1267
        if not self.quotaholder_url:
1268
            return
1269
        
1266 1270
        serial = self.quotaholder.issue_commission(
1267 1271
                context     =   {},
1268 1272
                target      =   account,

Also available in: Unified diff