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 the update to 11.5.0 #4641

Merged
merged 1 commit into from
Dec 14, 2023
Merged

Fix the update to 11.5.0 #4641

merged 1 commit into from
Dec 14, 2023

Conversation

fmarco76
Copy link
Member

Check and create the folder for every subsystem update, beside the instance update.

During the update certs and csr are removed from CS.cfg file and stored in <config>/certs folder if they are not in the internaldb.

The folder creation for the instance was done after update the subsystem generating an error and stopping the update.

@fmarco76 fmarco76 requested a review from edewata December 14, 2023 12:44
Copy link
Contributor

@edewata edewata left a comment

Choose a reason for hiding this comment

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

The version number should be 11.5.0 instead of 11.0.5, but the changes look good to me.

@@ -20,12 +20,11 @@ def __init__(self):
self.message = 'Removes certs data and CSR from CS.cfg'

def upgrade_instance(self, instance):

instance.makedirs(instance.certs_dir, exist_ok=True)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we don't need this code anymore. Feel free to remove it.

@fmarco76 fmarco76 changed the title Fix the update to 11.0.5 Fix the update to 11.5.0 Dec 14, 2023
Check and create the folder for every subsystem update, beside the
instance update.

During the update certs and csr are removed from CS.cfg file and stored
in `<config>/certs` folder if they are not in the internaldb.

The folder creation for the instance was done after update the subsystem generating an error and stopping the update.
Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@fmarco76
Copy link
Member Author

@edewata Thanks! I have updated the commit following your suggestions.

@fmarco76 fmarco76 merged commit 38cd57c into dogtagpki:master Dec 14, 2023
130 checks passed
@fmarco76 fmarco76 deleted the FixUpdate branch December 18, 2023 22:29
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