Skip to content

Opsscli #440

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

Merged
merged 4 commits into from
Sep 12, 2019
Merged

Opsscli #440

merged 4 commits into from
Sep 12, 2019

Conversation

jshum2479
Copy link
Member

Add opss wallet import command line options for sharing DB use case

-opss_wallet
-opss_wallet_passphrase

if opss_wallet is not None and opss_secret_password is not None:
self.wlst_helper.setSharedSecretStoreWithPassword(opss_wallet, opss_secret_password)

self.logger.exiting(class_name=self.__class_name, method_name=_method_name)
Copy link
Member

Choose a reason for hiding this comment

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

Exiting log should be same indent level as return, I think?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes. I have refactored the code and corrected the spelling in message catalog

@@ -1175,5 +1175,11 @@ def __configure_opss_secrets(self):
zip_entry = archive_file.getOPSSWallet();
FileUtils.extractZipFileContent(archive_file, zip_entry, extract_path)
self.wlst_helper.setSharedSecretStoreWithPassword(extract_path, opss_secret_password)
self.logger.exiting(class_name=self.__class_name, method_name=_method_name)
return extract_path
else:
Copy link
Member

Choose a reason for hiding this comment

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

Hard to tell from this diff, but it looks like this "else" is for "if OPSS_SECRETS in domain_info", still inside "if domain_info is not None". Seems like it should be:

if (domain_info is not None) and (OPSS_SECRETS in domain_info):
    ... use values from domain info
else:
    ... check model context

Even though the domain_info section should always be present on a create.

@@ -1442,6 +1442,8 @@ WLSDPLY-20023={0} unable to add model file {1} to archive as {2}: {3}
WLSDPLY-20024={0} failed to persist the model to the archive file {1}: {2}
WLSDPLY-20025=For {0}, specify the {1} or {2} argument, but not both
WLSDPLY-20026={0} failed to find a model file in archive {1}, and {2} argument not specified
WLSDPLY-20027=Enter the opss wallet passphrase
WLSDPLY-20028=Failed to read the opss wallet passphrase input from the user: {0}
Copy link
Member

Choose a reason for hiding this comment

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

OPSS should be all caps

@ddsharpe ddsharpe merged commit a3dbe87 into master Sep 12, 2019
@ddsharpe ddsharpe deleted the opsscli branch September 12, 2019 21:23
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.

3 participants