Skip to content
This repository has been archived by the owner on Oct 19, 2020. It is now read-only.

Copy install_dir files to local storage directory #7

Merged
merged 1 commit into from
Aug 18, 2020

Conversation

sacharya
Copy link
Contributor

No description provided.

render_files.py Outdated Show resolved Hide resolved
render_files.py Outdated
print("Uploading file %s as object %s" % (file_path, s3_file_name))
s3_file_name = "/{}/{}/{}".format(work_dir, cluster_id, file_name)
print("Copying file %s to %s" % (file_path, s3_file_name))
shutil.copyfile(file_path, s3_file_name)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need the original files, so maybe it would be more efficient to move them rather than copying. If the source and destination are on the same file system then it would mean changing a pointer rather than reading and writing actual data.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moving the install_dir to a directory named $cluster_id would make it more confusing though. May be symlink to the original files in install_dir?

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 18, 2020
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: avishayt, sacharya

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 18, 2020
@app-sre-bot
Copy link

Can one of the admins verify this patch?

@openshift-merge-robot openshift-merge-robot merged commit 6f5a321 into openshift:master Aug 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants