Revision ca5528f1 kamaki/clients/compute/__init__.py

b/kamaki/clients/compute/__init__.py
370 370
            response_headers[k] = r.headers.get(k, v)
371 371
        return r.json['meta' if key else 'metadata']
372 372

  
373
    def create_image_metadata(self, image_id, key, val):
374
        """
375
        :param image_id: integer (str or int)
373
    # def create_image_metadata(self, image_id, key, val):
374
    #     """
375
    #     :param image_id: integer (str or int)
376 376

  
377
        :param key: (str) metadatum key
377
    #     :param key: (str) metadatum key
378 378

  
379
        :param val: (str) metadatum value
379
    #     :param val: (str) metadatum value
380 380

  
381
        :returns: (dict) updated metadata
382
        """
383
        req = {'meta': {key: val}}
384
        r = self.images_metadata_put(image_id, key, json_data=req)
385
        return r.json['meta']
381
    #     :returns: (dict) updated metadata
382
    #     """
383
    #     req = {'meta': {key: val}}
384
    #     r = self.images_metadata_put(image_id, key, json_data=req)
385
    #     return r.json['meta']
386 386

  
387 387
    def update_image_metadata(
388 388
            self, image_id,

Also available in: Unified diff