Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept absolute paths for filenames #85

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

naved001
Copy link
Collaborator

For the merge.py, we now take in the names for the invoice file and the pod report file. The names of the S3 keys are calculated are not affected by this.

In the metrics collection script, the now output file name is also absolute. We no longer create any directory to organize the metrics in a folder. However when the names are uploaded to the S3 bucket, the key is organized and the names are calculated.

This allows us to generated the files in /tmp (or any other directory) with arbritary names but the file names uploaded to s3 are still calculated.

For the merge.py, we now take in the names for the invoice file and the pod
report file. The names of the S3 keys are calculated are not affected by this.

In the metrics collection script, the now output file name is also absolute.
We no longer create any directory to organize the metrics in a folder. However
when the names are uploaded to the S3 bucket, the key is organized and the names
are calculated.

This allows us to generated the files in /tmp (or any other directory) with
arbritary names but the file names uploaded to s3 are still calculated.
@naved001 naved001 requested a review from knikolla October 30, 2024 15:02
os.makedirs(directory_name)

output_file = os.path.join(directory_name, output_file)
if report_start_date == report_end_date:
Copy link
Contributor

Choose a reason for hiding this comment

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

What happens if not?

Copy link
Contributor

Choose a reason for hiding this comment

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

Err, sorry, need more coffee.

@naved001 naved001 merged commit bbdd702 into CCI-MOC:main Oct 30, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants