lib/chef/knife/cloud/openstack_service.rb in knife-openstack-2.1.7 vs lib/chef/knife/cloud/openstack_service.rb in knife-openstack-3.0.1
- old
+ new
@@ -1,9 +1,10 @@
#
# Author:: Siddheshwar More (<siddheshwar.more@clogeny.com>)
# Author:: Kaustubh Deorukhkar (<kaustubh@clogeny.com>)
-# Copyright:: Copyright 2013-2018 Chef Software, Inc.
+# Author:: Lance Albertson(<lance@osuosl.org>)
+# Copyright:: Copyright 2013-2020 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
@@ -16,10 +17,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
require "chef/knife/cloud/fog/service"
+require "fog/openstack"
class Chef
class Knife
class Cloud
class OpenstackService < FogService
@@ -65,11 +67,11 @@
ssl_verify_peer: !Chef::Config[:knife][:openstack_insecure],
},
}
(
- Fog::Compute::OpenStack.requirements +
- Fog::Compute::OpenStack.recognized -
+ Fog::OpenStack::Compute.requirements +
+ Fog::OpenStack::Compute.recognized -
[:openstack_api_key]
).each do |k|
next unless k.to_s.start_with?("openstack")
params[k] = Chef::Config[:knife][k]