Skip to content

Commit

Permalink
Update fog-openstack to v1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed Sep 28, 2021
1 parent 11c6c05 commit 1f9b09c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/gems/pending/util/object_storage/miq_swift_storage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def mkdir(_dir)
end

#
# Some calls to Fog::Storage::OpenStack::Directories#get will
# Some calls to Fog::OpenStack::Storage::Directories#get will
# return 'nil', and not return an error. This would cause errors down the
# line in '#upload' or '#download'.
#
Expand All @@ -109,9 +109,9 @@ def container(create_if_missing = true)
@container ||= begin
container = swift.directories.get(container_name)
logger.debug("Swift container [#{container}] found") if container
raise Fog::Storage::OpenStack::NotFound unless container
raise Fog::OpenStack::Storage::NotFound unless container
container
rescue Fog::Storage::OpenStack::NotFound
rescue Fog::OpenStack::Storage::NotFound
if create_if_missing
logger.debug("Swift container #{container_name} does not exist. Creating.")
create_container
Expand Down Expand Up @@ -152,7 +152,7 @@ def swift
:connection_options => { :debug_request => true }
}

@swift = Fog::Storage::OpenStack.new(connection_params)
@swift = Fog::OpenStack::Storage.new(connection_params)
end

def create_container
Expand Down
2 changes: 1 addition & 1 deletion manageiq-gems-pending.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Gem::Specification.new do |s|
s.add_runtime_dependency "aws-sdk-s3", "~> 1.0"
s.add_runtime_dependency "bundler", ">= 1.8.4" # rails-assets requires bundler >= 1.8.4, see: https://rails-assets.org/
s.add_runtime_dependency "erubis", "= 2.7.0"
s.add_runtime_dependency "fog-openstack", "~> 0.3"
s.add_runtime_dependency "fog-openstack", "~> 1.0"
s.add_runtime_dependency "handsoap", "= 0.2.5.5"
s.add_runtime_dependency "linux_admin", "~> 2.0"
s.add_runtime_dependency "manageiq-password", "~> 0.3"
Expand Down

0 comments on commit 1f9b09c

Please sign in to comment.