示例#1
0
 def _do_dry_run(self, context):
     submitter = Submitter(context)
     print submitter.build_submission(
         transfers=self.transfers,
         params=self.params
     )
     return None
示例#2
0
    def _do_dry_run(self, context):
        verify_checksum = None
        if self.options.compare_checksum:
            verify_checksum = True

        submitter = Submitter(context)
        print submitter.build_submission(
            self._build_transfers(),
            checksum=self.checksum,
            bring_online=self.options.bring_online,
            verify_checksum=verify_checksum,
            spacetoken=self.options.destination_token,
            source_spacetoken=self.options.source_token,
            fail_nearline=self.options.fail_nearline,
            file_metadata=_metadata(self.options.file_metadata),
            filesize=self.options.file_size,
            gridftp=self.options.gridftp_params,
            job_metadata=_metadata(self.options.job_metadata),
            overwrite=self.options.overwrite,
            copy_pin_lifetime=self.options.pin_lifetime,
            reuse=self.options.reuse,
            retry=self.options.retry,
            multihop=self.options.multihop,
            credential=self.options.cloud_cred
        )
        return None
    def _do_dry_run(self, context):

        submitter = Submitter(context)
        print submitter.build_submission(delete=self._build_delete(),
                                         spacetoken=self.options.spacetoken,
                                         job_metadata=_metadata(
                                             self.options.job_metadata),
                                         retry=self.options.retry,
                                         credential=self.options.cloud_cred)
        return None
    def _do_dry_run(self, context):

        submitter = Submitter(context)
        print submitter.build_submission(
            delete=self._build_delete(),
            spacetoken=self.options.spacetoken,
            job_metadata=_metadata(self.options.job_metadata),
            retry=self.options.retry,
            credential=self.options.cloud_cred
        )
        return None
示例#5
0
    def _do_dry_run(self, context):
        #Backwards compatibility: compare_checksum parameter
        if self.options.compare_checksum:
            checksum_mode = 'both'
        else:
            if self.checksum:
                checksum_mode = 'target'
            else:
                checksum = 'none'
        #Compare checksum has major priority than checksum_mode
        if not self.options.compare_checksum:
            if len(self.options.checksum_mode) > 0:
                checksum_mode = self.options.checksum_mode
            else:
                checksum_mode = 'none'

        if not self.checksum:
            self.checksum = DEFAULT_CHECKSUM

        submitter = Submitter(context)
        print submitter.build_submission(
            self._build_transfers(),
            checksum=self.checksum,
            bring_online=self.options.bring_online,
            timeout=self.options.timeout,
            verify_checksum=checksum_mode,
            spacetoken=self.options.destination_token,
            source_spacetoken=self.options.source_token,
            fail_nearline=self.options.fail_nearline,
            file_metadata=_metadata(self.options.file_metadata),
            filesize=self.options.file_size,
            gridftp=self.options.gridftp_params,
            job_metadata=_metadata(self.options.job_metadata),
            overwrite=self.options.overwrite,
            copy_pin_lifetime=self.options.pin_lifetime,
            reuse=self.options.reuse,
            retry=self.options.retry,
            multihop=self.options.multihop,
            credential=self.options.cloud_cred,
            nostreams=self.options.nostreams,
            ipv4=self.options.ipv4,
            ipv6=self.options.ipv6)
        return None