Revision 49919699
b/kamaki/cli.py | ||
---|---|---|
797 | 797 |
"""Delete a file""" |
798 | 798 |
|
799 | 799 |
def main(self, path): |
800 |
store_command.main(self)
|
|
800 |
super(store_delete, self).main()
|
|
801 | 801 |
self.client.delete_object(path) |
802 | 802 |
|
803 | 803 |
|
b/kamaki/clients/image.py | ||
---|---|---|
113 | 113 |
|
114 | 114 |
def add_member(self, image_id, member): |
115 | 115 |
path = '/images/%s/members/%s' % (image_id, member) |
116 |
r = self.put(path, success=204)
|
|
117 |
|
|
116 |
self.put(path, success=204) |
|
117 |
|
|
118 | 118 |
def remove_member(self, image_id, member): |
119 | 119 |
path = '/images/%s/members/%s' % (image_id, member) |
120 | 120 |
self.delete(path, success=204) |
b/kamaki/config.py | ||
---|---|---|
92 | 92 |
|
93 | 93 |
try: |
94 | 94 |
return RawConfigParser.get(self, section, option) |
95 |
except (NoSectionError, NoOptionError) as e:
|
|
95 |
except (NoSectionError, NoOptionError): |
|
96 | 96 |
return DEFAULTS.get(section, {}).get(option) |
97 | 97 |
|
98 | 98 |
def set(self, section, option, value): |
Also available in: Unified diff