lib/codily/importer.rb in codily-0.1.0.beta vs lib/codily/importer.rb in codily-0.2.0

- old
+ new

@@ -37,10 +37,10 @@ fastly.list_services.each do |service| if @service_filter next unless @service_filter.any? { |_| _ === service.name } end service_version = root.service_version_set(service.name, service.id, service.versions) - import_version = @import_targets[service.id] || @import_targets[service.name] || service_version[:dev] + import_version = @import_targets[service.id] || @import_targets[service.name] || service_version[:dev] || service_version[:active] root.add_element Elements::Service.new(root, service) threads = { Elements::Backend => proc { fastly.list_backends(service_id: service.id, version: import_version) },