Skip to content

Commit defaa61

Browse files
author
Yusuke KUOKA
committed
Fix the regression after changes in 23f4d94 which caused every kitchen test eventually fail when you provided a value for the interface configuration parameter.
The failure message is: >>>>>> ------Exception------- >>>>>> Class: Kitchen::ActionFailed >>>>>> Message: Failed to complete #create action: [undefined method `public' for #<Fog::Compute::AWS::Server:0x000000041bc430>] >>>>>> ---------------------- >>>>>> Please see .kitchen/logs/kitchen.log for more details >>>>>> Also try running `kitchen diagnose --all` for configuration See also: 23f4d94#diff-c5498dad76244656522b77033980c6a6R238
1 parent 9bd8e0f commit defaa61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/kitchen/driver/ec2.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def hostname(server)
247247
#
248248
def self.hostname(server, interface_type=nil)
249249
if interface_type
250-
INTERFACE_TYPES.fetch(interface_type) do
250+
interface_type = INTERFACE_TYPES.fetch(interface_type) do
251251
raise Kitchen::UserError, "Invalid interface [#{interface_type}]"
252252
end
253253
server.send(interface_type)

0 commit comments

Comments
 (0)