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

OC-11565 Add support for parameter --user-data during server create for knife-cloud #94

Merged
merged 4 commits into from
Apr 28, 2014

Conversation

siddheshwar-more
Copy link


it "doesn't set user data in server_def if user_data not specified" do
@instance.service = double
@instance.service.should_receive(:create_server_dependencies)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this just a stub? It looks like this method is empty in Chef::Knife::Cloud::Service#create_server_dependencies and does not exist in Chef::Knife::Cloud::OpenstackService. Something like this might be more informative and combine these two lines:

@instance.service = double("Chef::Knife::Cloud::OpenstackService", :create_server_dependencies => nil)

@instance.service = double
@instance.service.should_receive(:create_server_dependencies)
@instance.before_exec_command
@instance.create_options[:server_def].should_not include(:user_data)
Copy link
Author

Choose a reason for hiding this comment

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

Fixed. Thank you.

muktaa pushed a commit that referenced this pull request Apr 28, 2014
OC-11565  Add support for parameter --user-data during server create for knife-cloud
@muktaa muktaa merged commit 9d627ff into chef:knife-cloud Apr 28, 2014
@tas50 tas50 added Type: Enhancement Adds new functionality. and removed Enhancement labels Jul 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Adds new functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants