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

Avoid default inventory proccessing for pull #32135

Merged
merged 3 commits into from
Oct 25, 2017
Merged

Conversation

bcoca
Copy link
Member

@bcoca bcoca commented Oct 25, 2017

SUMMARY
  • now pull's own special inventory processing should work correctly
  • also removed ineffective set_defaults

fixes #31449

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

pull

ANSIBLE VERSION
2.4/2.5

- now pull's own special inventory processing should work correctly
- also removed ineffective set_defaults

fixes ansible#31449
@bcoca bcoca added this to Nominated in 2.4.x Blocker List Oct 25, 2017
@ansibot ansibot added affects_2.5 This issue/PR affects Ansible v2.5 bugfix_pull_request cli/pull needs_triage Needs a first human triage before being processed. support:core This issue/PR relates to code supported by the Ansible Engineering Team. labels Oct 25, 2017
# process inventory options
if hasattr(self.options, 'inventory'):
# process inventory options except for CLIs that require their own processing
if hasattr(self.options, 'inventory') and self.__class__.__name__ not in ('PullCLI'):
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be a flag set within the class rather than a check for a hard-coded class name?

Copy link
Member Author

Choose a reason for hiding this comment

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

good point

@ansibot ansibot added the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. label Oct 25, 2017
@bcoca bcoca removed the needs_triage Needs a first human triage before being processed. label Oct 25, 2017
(cherry picked from commit aad5d1432583c4aa4105b774f38c80498e85de59)
@bcoca bcoca merged commit ca71a50 into ansible:devel Oct 25, 2017
@bcoca bcoca deleted the pull_fixes branch October 25, 2017 23:55
@bcoca bcoca moved this from Nominated to TODO: Next release in 2.4.x Blocker List Oct 25, 2017
@abadger
Copy link
Contributor

abadger commented Oct 26, 2017

Merged for 2.4.2beta1

@abadger abadger moved this from TODO: Next release to Done in 2.4.2 in 2.4.x Blocker List Oct 26, 2017
abadger pushed a commit that referenced this pull request Oct 26, 2017
* Avoid default inventory proccessing for pull

- now pull's own special inventory processing should work correctly
- also removed ineffective set_defaults

fixes #31449

* use class property instead

* only do localhost for adhoc

(cherry picked from commit aad5d1432583c4aa4105b774f38c80498e85de59)

(cherry picked from commit ca71a50)
abadger pushed a commit that referenced this pull request Oct 26, 2017
* Avoid default inventory proccessing for pull

- now pull's own special inventory processing should work correctly
- also removed ineffective set_defaults

fixes #31449

* use class property instead

* only do localhost for adhoc

(cherry picked from commit aad5d1432583c4aa4105b774f38c80498e85de59)

(cherry picked from commit ca71a50)
@ansibot ansibot added bug This issue/PR relates to a bug. and removed bugfix_pull_request labels Mar 6, 2018
@ansible ansible locked and limited conversation to collaborators Apr 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.5 This issue/PR affects Ansible v2.5 bug This issue/PR relates to a bug. cli/pull needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. support:core This issue/PR relates to code supported by the Ansible Engineering Team.
Projects
No open projects
2.4.x Blocker List
Done in 2.4.2
Development

Successfully merging this pull request may close these issues.

ansible-pull broke fully after update from 2.3 to 2.4
4 participants