#840: some small fixes
This commit is contained in:
parent
02e4ae88d8
commit
02cf7427cf
@ -10,7 +10,7 @@ class BootstrapWorker < Worker
|
|||||||
def perform(options)
|
def perform(options)
|
||||||
provider_name = options.fetch('provider_name')
|
provider_name = options.fetch('provider_name')
|
||||||
server_attrs = options.fetch('server_attrs')
|
server_attrs = options.fetch('server_attrs')
|
||||||
bootstrap_template = options.fetch('bootstrap_template')
|
# bootstrap_template = options.fetch('bootstrap_template')
|
||||||
owner = options.fetch('owner')
|
owner = options.fetch('owner')
|
||||||
options = convert_config(options)
|
options = convert_config(options)
|
||||||
|
|
||||||
@ -23,9 +23,6 @@ class BootstrapWorker < Worker
|
|||||||
bootstrap_template: bootstrap_template
|
bootstrap_template: bootstrap_template
|
||||||
}
|
}
|
||||||
=end
|
=end
|
||||||
out << "\nFrom bootstrap worker: "
|
|
||||||
out << options.inspect
|
|
||||||
out << "\n"
|
|
||||||
executor = Devops::Executor::ServerExecutor.new(server, out)
|
executor = Devops::Executor::ServerExecutor.new(server, out)
|
||||||
executor.report = report
|
executor.report = report
|
||||||
status = executor.two_phase_bootstrap(options)
|
status = executor.two_phase_bootstrap(options)
|
||||||
|
|||||||
@ -133,7 +133,6 @@ class Worker
|
|||||||
def convert_config conf
|
def convert_config conf
|
||||||
config = {}
|
config = {}
|
||||||
conf.each {|k,v| config[k.is_a?(String) ? k.to_sym : k] = v}
|
conf.each {|k,v| config[k.is_a?(String) ? k.to_sym : k] = v}
|
||||||
DevopsLogger.logger.info "Converted options: #{config.inspect}"
|
|
||||||
config
|
config
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user