Revision 3ae60112 kamaki/cli/commands/image_cli.py
b/kamaki/cli/commands/image_cli.py | ||
---|---|---|
176 | 176 |
@errors.plankton.connection |
177 | 177 |
def _run(self, name, location): |
178 | 178 |
if not location.startswith('pithos://'): |
179 |
account = self.config.get('store', 'account') \
|
|
179 |
account = self.config.get('file', 'account') \
|
|
180 | 180 |
or self.config.get('global', 'account') |
181 | 181 |
assert account, 'No user account provided' |
182 | 182 |
if account[-1] == '/': |
183 | 183 |
account = account[:-1] |
184 |
container = self.config.get('store', 'container') \
|
|
184 |
container = self.config.get('file', 'container') \
|
|
185 | 185 |
or self.config.get('global', 'container') |
186 | 186 |
if not container: |
187 | 187 |
location = 'pithos://%s/%s' % (account, location) |
Also available in: Unified diff