Revision 3a066af4 kamaki/cli/commands/pithos_cli.py
b/kamaki/cli/commands/pithos_cli.py | ||
---|---|---|
529 | 529 |
class _source_destination_command(_store_container_command): |
530 | 530 |
|
531 | 531 |
arguments = dict( |
532 |
source_account=ValueArgument('', '--src-account'), |
|
532 | 533 |
recursive=FlagArgument('', ('-r', '--recursive')), |
533 | 534 |
prefix=FlagArgument('', '--with-prefix', default=''), |
534 | 535 |
suffix=ValueArgument('', '--with-suffix', default=''), |
... | ... | |
654 | 655 |
""" |
655 | 656 |
|
656 | 657 |
arguments = dict( |
658 |
source_account=ValueArgument('Account to copy from', '--src-account'), |
|
657 | 659 |
destination_container=ValueArgument( |
658 | 660 |
'use it if destination container name contains a : character', |
659 | 661 |
'--dst-container'), |
... | ... | |
692 | 694 |
@errors.pithos.container |
693 | 695 |
def _run(self, dst_cont, dst_path): |
694 | 696 |
no_source_object = True |
695 |
for src_object, dst_object in self.src_dst_pairs(dst_cont, dst_path):
|
|
697 |
for src_obj, dst_obj in self.src_dst_pairs(dst_cont, dst_path):
|
|
696 | 698 |
no_source_object = False |
697 | 699 |
self.client.copy_object( |
698 | 700 |
src_container=self.container, |
699 |
src_object=src_object,
|
|
701 |
src_object=src_obj, |
|
700 | 702 |
dst_container=dst_cont, |
701 |
dst_object=dst_object, |
|
703 |
dst_object=self.client.account, |
|
704 |
source_account=self['source_account'], |
|
702 | 705 |
source_version=self['source_version'], |
703 | 706 |
public=self['public'], |
704 | 707 |
content_type=self['content_type']) |
Also available in: Unified diff