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

showing error message for incorrect option input #265

Merged

Conversation

NimishaS
Copy link

@NimishaS NimishaS commented Dec 3, 2014

if security_groups and security_group_ids are not provided as an array

@NimishaS NimishaS mentioned this pull request Dec 3, 2014

if(config[:security_groups] && config[:security_groups].class == String)
ui.error("security_groups should be provided as array")
exit

Choose a reason for hiding this comment

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

put proper exit code.
Ex: exit 1

NimishaS pushed a commit that referenced this pull request Dec 4, 2014
…ong_option

showing error message if security_groups and security_group_ids are not provided as an array
@NimishaS NimishaS merged commit edb1601 into chef:master Dec 4, 2014
@NimishaS NimishaS deleted the nim/error_msg_for_wrong_option branch December 4, 2014 12:56
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