Skip to content

Allow discover to run without required archive file #828

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 3 commits into from
Feb 2, 2021

Conversation

CarolynRountree
Copy link
Contributor

@CarolynRountree CarolynRountree commented Jan 29, 2021

Fixes #824

Copy link
Member

@ddsharpe ddsharpe left a comment

Choose a reason for hiding this comment

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

LGTM

validateExistingFile(model, "model", getArchiveFileName(), METHOD);
getZipFile().removeZipEntries(ARCHIVE_MODEL_TARGET_DIR);
addItemToZip(ARCHIVE_MODEL_TARGET_DIR, model);
if (hasArchive) {
Copy link
Member

Choose a reason for hiding this comment

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

With a code block this small, it doesn't matter much. But, code analyzers tend to report that the quick test and return are less "complex" for the reader. Like
if (hasArchive) {
return;
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would agree with that except that all of these methods have enter / exit logging

@ddsharpe ddsharpe merged commit df51ec5 into master Feb 2, 2021
@ddsharpe ddsharpe deleted the WDT-452-discover-optional-archive branch February 2, 2021 22:51
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.

Request feature discoverDomain.sh optional usage of -archive_file option
4 participants