Revision a91e0293 kamaki/cli.py
b/kamaki/cli.py | ||
---|---|---|
712 | 712 |
"""Create a container""" |
713 | 713 |
|
714 | 714 |
def main(self, container): |
715 |
if self.options.account: |
|
716 |
self.client.account = self.options.account |
|
715 |
super(store_create, self).main() |
|
717 | 716 |
self.client.create_container(container) |
718 | 717 |
|
719 | 718 |
|
... | ... | |
722 | 721 |
"""Get container info""" |
723 | 722 |
|
724 | 723 |
def main(self, container): |
725 |
if self.options.account: |
|
726 |
self.client.account = self.options.account |
|
724 |
super(store_container, self).main() |
|
727 | 725 |
reply = self.client.get_container_meta(container) |
728 | 726 |
print_dict(reply) |
729 | 727 |
|
... | ... | |
801 | 799 |
self.client.delete_object(path) |
802 | 800 |
|
803 | 801 |
|
802 |
@command(api='storage') |
|
803 |
class store_purge(_store_account_command): |
|
804 |
"""Purge a container""" |
|
805 |
|
|
806 |
def main(self, container): |
|
807 |
super(store_purge, self).main() |
|
808 |
self.client.purge_container(container) |
|
809 |
|
|
810 |
|
|
804 | 811 |
@command(api='astakos') |
805 | 812 |
class astakos_authenticate(object): |
806 | 813 |
"""Authenticate a user""" |
Also available in: Unified diff