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

fixes #20089 - Remove deleted puppet modules #6843

Merged
merged 1 commit into from Jul 12, 2017

Conversation

sjha4
Copy link
Member

@sjha4 sjha4 commented Jun 29, 2017

Steps to reproduce:

  1. Sync a puppet URL with modules.
  2. Remove a module from the source server.
  3. On a fresh sync, the old module that has been removed on the source is still part of the product.

Changes to fix:

Using remove_missing flag on the pulp end to clone behavior as is on the yum repos.

@theforeman-bot
Copy link

Issues: #20089

@@ -207,6 +207,14 @@ def yum_importer_values(capsule)
config.merge(importer_ssl_options(capsule))
end

def puppet_importer_values(capsule)
config = {
:feed => self.importer_feed_url(capsule),

Choose a reason for hiding this comment

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

Use 2 spaces for indentation in a hash, relative to the start of the line where the left curly brace is.

@sjha4 sjha4 force-pushed the issue20089 branch 3 times, most recently from a32150f to 7447302 Compare July 5, 2017 20:55
@sjha4
Copy link
Member Author

sjha4 commented Jul 6, 2017

[test]

@sjha4 sjha4 changed the title fixes #20089 - [WIP] Remove deleted puppet modules fixes #20089 - Remove deleted puppet modules Jul 6, 2017
@sjha4
Copy link
Member Author

sjha4 commented Jul 6, 2017

@jlsherrill : Thanks! Test Cases Passed 👍
Removed [WIP] , ready for review.

@sjha4 sjha4 changed the title fixes #20089 - Remove deleted puppet modules fixes #20089 - [WIP] Remove deleted puppet modules Jul 7, 2017
@sjha4 sjha4 changed the title fixes #20089 - [WIP] Remove deleted puppet modules fixes #20089 - Remove deleted puppet modules Jul 10, 2017
@@ -157,8 +157,8 @@ def generate_importer(capsule = SmartProxy.default_capsule!)
when Repository::FILE_TYPE
Runcible::Models::IsoImporter.new(importer_ssl_options(capsule).merge(:feed => importer_feed_url(capsule)))
when Repository::PUPPET_TYPE
options = {:feed => importer_feed_url(capsule)}
Runcible::Models::PuppetImporter.new(importer_ssl_options(capsule).merge(options))
#options = {:feed => importer_feed_url(capsule)}
Copy link
Member

Choose a reason for hiding this comment

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

I think you meant to delete this line?

Copy link
Member Author

Choose a reason for hiding this comment

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

Removed the comment.

@@ -125,7 +125,7 @@ <h6 translate>
</p>
</div>

<div class="checkbox" ng-show="repository.content_type === 'yum'">
<div class="checkbox" ng-show="repository.content_type === 'yum'|| repository.content_type === 'puppet'">
Copy link
Member

Choose a reason for hiding this comment

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

add a space between the word 'yum' and || please :)

Copy link
Member Author

Choose a reason for hiding this comment

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

Modified the spacing.

@jlsherrill
Copy link
Member

minor issues and nitpicks, but otherwise seems to work fine!

@sjha4
Copy link
Member Author

sjha4 commented Jul 12, 2017

[test]

@jlsherrill
Copy link
Member

ACK thanks @sjha4 !!

@jlsherrill jlsherrill merged commit 4ba8296 into Katello:master Jul 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants