Revision 71585c27 snf-pithos-app/pithos/api/management/commands/reconcile-resources-pithos.py

b/snf-pithos-app/pithos/api/management/commands/reconcile-resources-pithos.py
40 40
from synnefo.webproject.management import utils
41 41
from astakosclient.errors import AstakosClientException
42 42

  
43
ENTITY_KEY = '1'
44

  
45 43
backend = get_backend()
46 44

  
47 45
class Command(NoArgsCommand):
......
149 147
                request['auto_accept'] = True
150 148
                request['provisions'] = provisions
151 149
                try:
152
                    serial = backend.astakosclient.issue_commission(
150
                    backend.astakosclient.issue_commission(
153 151
                        backend.service_token, request
154 152
                    )
155 153
                except AstakosClientException, e:
156 154
                    self.stdout.write(e.details)
157
                else:
158
                    backend.commission_serials.insert_many([serial])
159 155
            elif options['list'] and table:
160 156
                output_format = options["output_format"]
161 157
                if output_format != "json" and not options["headers"]:

Also available in: Unified diff