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

Fix undefined method `to_cf_host' for Chef::Resource::MacosUserDefaults error #12219

Merged
merged 2 commits into from
Oct 28, 2021

Conversation

rishichawda
Copy link
Member

@rishichawda rishichawda commented Oct 27, 2021

Description

userdefaults run fails because to_cf_host could not be found when placed inside action_class. removed the action_class block and moved the import to top of the file. this seems to have fixed the issue.

Related Issue

https://github.com/chef/desktop-config/issues/449

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (non-breaking change that does not add functionality or fix an issue)

Checklist:

  • I have read the CONTRIBUTING document.
  • I have run the pre-merge tests locally and they pass.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • All commits have been signed-off for the Developer Certificate of Origin.

Signed-off-by: rishichawda <rishichawda@users.noreply.github.com>
Signed-off-by: rishichawda <rishichawda@users.noreply.github.com>
@rishichawda rishichawda requested review from a team as code owners October 27, 2021 14:49
@lamont-granquist lamont-granquist merged commit 892c691 into main Oct 28, 2021
@lamont-granquist lamont-granquist deleted the fix-macos-userdefaults-nomethod-error branch October 28, 2021 20:40
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.

None yet

2 participants