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

1145719 - Puppet directory import now respects the 'remove_missing' configuration setting #156

Merged
merged 1 commit into from Dec 10, 2014

Conversation

jeremycline
Copy link
Contributor

self.report.modules_total_count -= 1
continue
_LOG.info(IMPORT_MODULE % dict(mod=module_path))
imported_modules.append(module.unit_key())
_LOG.debug(IMPORT_MODULE % dict(mod=module_path))
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 personally felt that info logging every module import was a bit too noisy, but I'd like to know what others think.

Copy link
Contributor

Choose a reason for hiding this comment

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

On 11/25/2014 04:29 PM, Jeremy Cline wrote:

I personally felt that info logging every module import was a bit too
noisy, but I'd like to know what others think.

I agree.

@bowlofeggs bowlofeggs self-assigned this Dec 4, 2014

# Even though we've already basically processed this unit, not doing this makes the
# progress reporting confusing because it shows Pulp always importing all the modules.
if module.unit_key() in [unit.unit_key for unit in local_units]:
Copy link
Contributor

Choose a reason for hiding this comment

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

You should move this list comprehension to be outside the loop so that it doesn't happen for each unit.

@bowlofeggs
Copy link
Contributor

Can you add one more test to assert that remove_missing gets called by call() when it's supposed to be?

LGTM.

jeremycline added a commit that referenced this pull request Dec 10, 2014
1145719 - Puppet directory import now respects the 'remove_missing' configuration setting
@jeremycline jeremycline merged commit 36c910e into pulp:2.6-dev Dec 10, 2014
@jeremycline jeremycline deleted the 1145719 branch December 10, 2014 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants