Skip to content

Use assignment_regex, only_if and bump profile version#64

Merged
chris-rock merged 2 commits intomasterfrom
ap/assignment_re-update
May 30, 2017
Merged

Use assignment_regex, only_if and bump profile version#64
chris-rock merged 2 commits intomasterfrom
ap/assignment_re-update

Conversation

@alexpop
Copy link
Copy Markdown
Contributor

@alexpop alexpop commented May 30, 2017

To avoid inspec exec warnings like these:

192.168.56.40 [DEPRECATION] `:assignment_re` is deprecated in favor of `:assignment_regex` and will be removed in the next major version. See: https://github.com/chef/inspec/issues/1709
192.168.56.40 [DEPRECATION] `:assignment_re` is deprecated in favor of `:assignment_regex` and will be removed in the next major version. See: https://github.com/chef/inspec/issues/1709
192.168.56.40 [DEPRECATION] `:assignment_re` is deprecated in favor of `:assignment_regex` and will be removed in the next major version. See: https://github.com/chef/inspec/issues/1709
192.168.56.40 [DEPRECATION] `:assignment_re` is deprecated in favor of `:assignment_regex` and will be removed in the next major version. See: https://github.com/chef/inspec/issues/1709
192.168.56.40 [DEPRECATION] `:assignment_re` is deprecated in favor of `:assignment_regex` and will be removed in the next major version. See: https://github.com/chef/inspec/issues/1709
192.168.56.40 [DEPRECATION] `:assignment_re` is deprecated in favor of `:assignment_regex` and will be removed in the next major version. See: https://github.com/chef/inspec/issues/1709
192.168.56.40 [DEPRECATION] `:assignment_re` is deprecated in favor of `:assignment_regex` and will be removed in the next major version. See: https://github.com/chef/inspec/issues/1709
192.168.56.40 [DEPRECATION] `:assignment_re` is deprecated in favor of `:assignment_regex` and will be removed in the next major version. See: https://github.com/chef/inspec/issues/1709
192.168.56.40 [DEPRECATION] `:assignment_re` is deprecated in favor of `:assignment_regex` and will be removed in the next major version. See: https://github.com/chef/inspec/issues/1709
192.168.56.40 [DEPRECATION] `:assignment_re` is deprecated in favor of `:assignment_regex` and will be removed in the next major version. See: https://github.com/chef/inspec/issues/1709
192.168.56.40 [DEPRECATION] `:assignment_re` is deprecated in favor of `:assignment_regex` and will be removed in the next major version. See: https://github.com/chef/inspec/issues/1709
192.168.56.40 [DEPRECATION] `:assignment_re` is deprecated in favor of `:assignment_regex` and will be removed in the next major version. See: https://github.com/chef/inspec/issues/1709
192.168.56.40 [DEPRECATION] `:assignment_re` is deprecated in favor of `:assignment_regex` and will be removed in the next major version. See: https://github.com/chef/inspec/issues/1709
192.168.56.40 [DEPRECATION] `:assignment_re` is deprecated in favor of `:assignment_regex` and will be removed in the next major version. See: https://github.com/chef/inspec/issues/1709
192.168.56.40 [DEPRECATION] `:assignment_re` is deprecated in favor of `:assignment_regex` and will be removed in the next major version. See: https://github.com/chef/inspec/issues/1709
192.168.56.40 [DEPRECATION] `:assignment_re` is deprecated in favor of `:assignment_regex` and will be removed in the next major version. See: https://github.com/chef/inspec/issues/1709
192.168.56.40 [DEPRECATION] `:assignment_re` is deprecated in favor of `:assignment_regex` and will be removed in the next major version. See: https://github.com/chef/inspec/issues/1709
192.168.56.40 [DEPRECATION] `:assignment_re` is deprecated in favor of `:assignment_regex` and will be removed in the next major version. See: https://github.com/chef/inspec/issues/1709
192.168.56.40 [DEPRECATION] `:assignment_re` is deprecated in favor of `:assignment_regex` and will be removed in the next major version. See: https://github.com/chef/inspec/issues/1709
192.168.56.40 [DEPRECATION] `:assignment_re` is deprecated in favor of `:assignment_regex` and will be removed in the next major version. See: https://github.com/chef/inspec/issues/1709
192.168.56.40 [DEPRECATION] `:assignment_re` is deprecated in favor of `:assignment_regex` and will be removed in the next major version. See: https://github.com/chef/inspec/issues/1709
192.168.56.40 [DEPRECATION] `:assignment_re` is deprecated in favor of `:assignment_regex` and will be removed in the next major version. See: https://github.com/chef/inspec/issues/1709
192.168.56.40 [DEPRECATION] `:assignment_re` is deprecated in favor of `:assignment_regex` and will be removed in the next major version. See: https://github.com/chef/inspec/issues/1709
192.168.56.40 [DEPRECATION] `:assignment_re` is deprecated in favor of `:assignment_regex` and will be removed in the next major version. See: https://github.com/chef/inspec/issues/1709
192.168.56.40 [DEPRECATION] `:assignment_re` is deprecated in favor of `:assignment_regex` and will be removed in the next major version. See: https://github.com/chef/inspec/issues/1709

and check warning:

$ inspec check .
Location:    .
Profile:     linux-baseline
Controls:    51
Timestamp:   2017-05-30T13:07:59+01:00
Valid:       true

  !  ./controls/os_spec.rb:170: Control os-05b has no tests defined

Summary:     0 errors, 1 warnings

Copy link
Copy Markdown
Member

@chris-rock chris-rock left a comment

Choose a reason for hiding this comment

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

Thank you @alexpop

@chris-rock chris-rock merged commit 3a83bad into master May 30, 2017
@chris-rock chris-rock deleted the ap/assignment_re-update branch May 30, 2017 12:11
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.

2 participants