Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Handle GemRunner returning nil on success #57

Merged
merged 1 commit into from
May 21, 2014

Conversation

mpasternacki
Copy link
Contributor

Gem::GemRunner returns nil on success for some commands (gem update is what gave me trouble). In such case, ChefDK::CLI#run goes ahead and tries to understand global chef command's options, which in turn doesn't recognize gem's options and fails.

This patch translates nil return value to true, which indicates success.

@sersut
Copy link

sersut commented May 21, 2014

👍 I had a mental note of this. Thanks for taking a stab at this @mpasternacki.

@sethvargo
Copy link

👍

sersut pushed a commit that referenced this pull request May 21, 2014
Handle GemRunner returning nil on success
@sersut sersut merged commit c39ab35 into chef-boneyard:master May 21, 2014
@thommay thommay added Type: Bug Doesn't work as expected. and removed Bug labels Feb 1, 2017
@chef-boneyard chef-boneyard locked and limited conversation to collaborators Feb 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Bug Doesn't work as expected.
Development

Successfully merging this pull request may close these issues.

4 participants