Revision f424ea0a kamaki/cli/commands/image.py

b/kamaki/cli/commands/image.py
898 898
    @errors.cyclades.connection
899 899
    @errors.plankton.id
900 900
    def _run(self, image_id, keyvals):
901
        print keyvals
902 901
        meta = dict()
903 902
        for keyval in keyvals:
904 903
            key, sep, val = keyval.partition('=')
905 904
            meta[key] = val
906
        print meta
907 905
        self._print(
908 906
            self.client.update_image_metadata(image_id, **meta), print_dict)
909 907

  
910 908
    def main(self, image_id, *key_equals_value):
911 909
        super(self.__class__, self)._run()
912
        print key_equals_value
913 910
        self._run(image_id=image_id, keyvals=key_equals_value)
914 911

  
915 912

  

Also available in: Unified diff