Skip to content

Commit 7015348

Browse files
author
Christopher Thorn
committed
(maint) Fix using ABS service without a .vmfloaty.yml file
If you do not use a config file, and define everything on the command line, previously the service always defaulted to vmpooler. Even if you requested ABS. This PR fixes that, now we'll see if the config has no service defined and we defined on the command line a service, we'll use that service.
1 parent b944760 commit 7015348

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/vmfloaty/utils.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,9 @@ def self.get_service_config(config, options)
206206
# If the service is configured but some values are missing, use the top-level defaults to fill them in
207207
service_config.merge! config['services'][options.service]
208208
end
209+
# No config file but service is declared on command line
210+
elsif !config['services'] && options.service
211+
service_config['type'] = options.service
209212
end
210213

211214
# Prioritize an explicitly specified url, user, or token if the user provided one

0 commit comments

Comments
 (0)