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

Fix generate_new_metadata in tidy_backup_clean.rb needs to preserve metadata.json. #107

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Vasu1105
Copy link

@Vasu1105 Vasu1105 commented Oct 11, 2019

Signed-off-by: Vasu1105 vasundhara.jagdale@msystechnologies.com

Description

It skips the new generation of files if both metadata.json and metadata.rb exist
It raises error if both metadata.json or metadata.rb does not exist
It creates metadata.json if only metadata.rb exist as knife cookbook metadata does.

Issues Resolved

Fixes #105

Check List

@Vasu1105 Vasu1105 changed the title Fix generate_new_metadata in tidy_backup_clean.rb needs to preserve metadata.json. [WIP] Fix generate_new_metadata in tidy_backup_clean.rb needs to preserve metadata.json. Oct 11, 2019
@Vasu1105 Vasu1105 changed the title [WIP] Fix generate_new_metadata in tidy_backup_clean.rb needs to preserve metadata.json. Fix generate_new_metadata in tidy_backup_clean.rb needs to preserve metadata.json. Dec 31, 2019
@Vasu1105
Copy link
Author

@lamont-granquist could you please review this PR. Most of this comments #105 (comment) are incorporated here.

@Vasu1105 Vasu1105 force-pushed the vasundhara/MSYS_1129_Preserve_metadata_json_in_knife_tidy_backup_clean branch from 28e80c7 to 5cf0c2b Compare May 20, 2020 12:34
@tas50
Copy link
Contributor

tas50 commented Jun 11, 2020

@Vasu1105 Can you rebase this please?

Vasu1105 added 4 commits June 12, 2020 09:17
….rb needs to preserve metadata.json.

It skips the new generation of files if both metadata.json and metadata.rb exist
It creates minimal data if both metadata.json or metadata.rb does not exist
It creates metadata.json if only metadata.rb exist as knife cookbook metadata does.
No metadata.rb is generated if only metadata.json exist only fields of the existing metadata.json gets fixed if there any repair to file require which as per old logic.

Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
…well when both does not exist

Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
@Vasu1105 Vasu1105 force-pushed the vasundhara/MSYS_1129_Preserve_metadata_json_in_knife_tidy_backup_clean branch from da5acb7 to fe0ce2f Compare June 12, 2020 03:47
@Vasu1105
Copy link
Author

@Vasu1105 Can you rebase this please?

@tas50 Done.

@tas50
Copy link
Contributor

tas50 commented Feb 26, 2022

@PrajaktaPurohit this could also use review

@tas50
Copy link
Contributor

tas50 commented Feb 26, 2022

@lamont-granquist since you reported this issue do you wanna review this?

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.

generate_new_metadata in tidy_backup_clean.rb needs to preserve metadata.json
2 participants