Skip to content

Commit

Permalink
Merge pull request #558 from agrare/update_fog_openstack_v1
Browse files Browse the repository at this point in the history
Update fog-openstack to v1.0
  • Loading branch information
kbrock committed May 8, 2023
2 parents 5c31ba0 + 68cbb8a commit cd6ac11
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 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,10 @@ 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 +153,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 @@ -24,7 +24,7 @@ Gem::Specification.new do |s|
s.add_runtime_dependency "awesome_spawn", "~> 1.5"
s.add_runtime_dependency "aws-sdk-s3", "~> 1.0"
s.add_runtime_dependency "bundler", "~> 2.1", ">= 2.1.4", "!= 2.2.10"
s.add_runtime_dependency "fog-openstack", "~> 0.3"
s.add_runtime_dependency "fog-openstack", "~> 1.0"
s.add_runtime_dependency "more_core_extensions", "~> 4.4"
s.add_runtime_dependency "nokogiri", "~> 1.14", ">= 1.14.3"
s.add_runtime_dependency "sys-proctable", "~> 1.2.5"
Expand Down

0 comments on commit cd6ac11

Please sign in to comment.