Module: Kitchen::Driver::Openstack::Config

Included in:
Kitchen::Driver::Openstack
Defined in:
lib/kitchen/driver/openstack/config.rb

Overview

Server naming and configuration helpers

Instance Method Summary collapse

Instance Method Details

#config_server_nameObject

Set the proper server name in the config



30
31
32
33
34
35
36
37
38
# File 'lib/kitchen/driver/openstack/config.rb', line 30

def config_server_name
  return if config[:server_name]

  config[:server_name] = if config[:server_name_prefix]
                           server_name_prefix(config[:server_name_prefix])
                         else
                           default_name
                         end
end