lib/chef/knife/openstack_helpers.rb in knife-openstack-3.0.1 vs lib/chef/knife/openstack_helpers.rb in knife-openstack-4.0.0
- old
+ new
@@ -1,7 +1,7 @@
#
-# Copyright:: Copyright 2018 Chef Software, Inc.
+# Copyright:: Copyright (c) Chef Software Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
@@ -32,10 +32,10 @@
def primary_network_ip_address(addresses, network_name)
addresses[network_name].last["addr"] if addresses[network_name] && !addresses[network_name].empty?
end
def create_service_instance
- OpenstackService.new
+ OpenstackService.new(config: config)
end
def validate!
super(:openstack_username, :openstack_password, :openstack_auth_url)
end