Skip to content

Fix chef module run failure when chef_license is set#868

Merged
TheRealFalcon merged 2 commits into
canonical:masterfrom
bmhughes:fix-run-failure-with-chef-license-set
Apr 26, 2021
Merged

Fix chef module run failure when chef_license is set#868
TheRealFalcon merged 2 commits into
canonical:masterfrom
bmhughes:fix-run-failure-with-chef-license-set

Conversation

@bmhughes
Copy link
Copy Markdown
Contributor

Commit Message

Move chef_license from TPL_PATH_KEYS to TPL_KEYS as the chef license setting is not a path but must be added to the client config template. Fixes file or folder not found exception raised from ensure_dirs.

Test Steps

Perform a cloud-init run with chef bootstrap configuration and chef_license set.

Checklist:

  • My code follows the process laid out in the documentation
  • I have updated or added any unit tests accordingly
  • I have updated or added any documentation accordingly

Move `chef_license` from TPL_PATH_KEYS to TPL_KEYS as the chef license
setting is not a path but must be added to the client config template.
Copy link
Copy Markdown
Contributor

@TheRealFalcon TheRealFalcon left a comment

Choose a reason for hiding this comment

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

Thanks!

@TheRealFalcon TheRealFalcon merged commit 02db2c3 into canonical:master Apr 26, 2021
@bmhughes bmhughes deleted the fix-run-failure-with-chef-license-set branch April 27, 2021 11:12
TheRealFalcon added a commit to TheRealFalcon/cloud-init that referenced this pull request May 12, 2021
Ensure no Traceback when 'chef_license' is set
TheRealFalcon added a commit to TheRealFalcon/cloud-init that referenced this pull request May 14, 2021
Ensure no Traceback when 'chef_license' is set
blackboxsw pushed a commit that referenced this pull request May 19, 2021
Ensure no Traceback when 'chef_license' is set
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