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

Make InventoryManipulation available to all rake tasks #251

Merged
merged 2 commits into from
Feb 20, 2020

Conversation

DavidS
Copy link
Contributor

@DavidS DavidS commented Feb 20, 2020

Previously this was guarded by the existence of a inventory.yaml file,
which could lead to errors when trying to chain operations:

~/git/puppetlabs-motd$ rm inventory.yaml
~/git/puppetlabs-motd$ bundle exec rake litmus:provision[docker,litmusimage/debian:9] litmus:install_agent litmus:install_module
Provisioning litmusimage/debian:9 using docker provisioner.[✔]
localhost:2223, litmusimage/debian:9
rake aborted!
NameError: undefined local variable or method `inventory_hash_from_inventory_file' for main:Object
/home/david/gems/ruby/2.5.0/gems/puppet_litmus-0.15.0/lib/puppet_litmus/rake_tasks.rb:104:in `block (2 levels) in <top (required)>'
/home/david/gems/ruby/2.5.0/gems/rake-12.3.3/exe/rake:27:in `<top (required)>'
Tasks: TOP => litmus:install_agent
(See full trace by running task with --trace)
~/git/puppetlabs-motd$

@DavidS DavidS added the bugfix label Feb 20, 2020
@DavidS DavidS requested a review from a team as a code owner February 20, 2020 12:13
@codecov-io
Copy link

codecov-io commented Feb 20, 2020

Codecov Report

Merging #251 into master will increase coverage by 0.3%.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master    #251     +/-   ##
========================================
+ Coverage    55.3%   55.6%   +0.3%     
========================================
  Files           6       6             
  Lines         660     660             
========================================
+ Hits          365     367      +2     
+ Misses        295     293      -2
Impacted Files Coverage Δ
lib/puppet_litmus/rake_tasks.rb 32.14% <100%> (+0.79%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f103d8a...755607b. Read the comment docs.

* fix new and updated rules
* hardcode version numbers for dependabot to keep failures out of other PRs
Previously this was guarded by the existence of a inventory.yaml file,
which could lead to errors when trying to chain operations:

```
~/git/puppetlabs-motd$ rm inventory.yaml
~/git/puppetlabs-motd$ bundle exec rake litmus:provision[docker,litmusimage/debian:9] litmus:install_agent litmus:install_module
Provisioning litmusimage/debian:9 using docker provisioner.[✔]
localhost:2223, litmusimage/debian:9
rake aborted!
NameError: undefined local variable or method `inventory_hash_from_inventory_file' for main:Object
/home/david/gems/ruby/2.5.0/gems/puppet_litmus-0.15.0/lib/puppet_litmus/rake_tasks.rb:104:in `block (2 levels) in <top (required)>'
/home/david/gems/ruby/2.5.0/gems/rake-12.3.3/exe/rake:27:in `<top (required)>'
Tasks: TOP => litmus:install_agent
(See full trace by running task with --trace)
~/git/puppetlabs-motd$
```
@DavidS DavidS force-pushed the fix-inventorymanipulation-chaining branch from 113ede2 to 755607b Compare February 20, 2020 14:56
Copy link
Contributor

@tphoney tphoney left a comment

Choose a reason for hiding this comment

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

👍

@tphoney tphoney merged commit 08bfbee into puppetlabs:master Feb 20, 2020
@DavidS DavidS deleted the fix-inventorymanipulation-chaining branch February 24, 2020 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants