Fix Ruby 2.7 kwargs deprecations in Geo transfer classes

Part of https://gitlab.com/gitlab-org/gitlab/-/issues/257438
parent 025a27b1
......@@ -13,11 +13,10 @@ module Gitlab
# @param [Upload] upload
def initialize(file_type, upload)
if upload.local?
super(local_file_attributes(file_type, upload))
super(**local_file_attributes(file_type, upload))
else
super(remote_file_attributes(file_type, upload))
super(**remote_file_attributes(file_type, upload))
end
rescue ObjectStorage::RemoteStoreError
::Gitlab::Geo::Logger.warn "Error trying to transfer a remote object as a local object."
end
......
......@@ -13,9 +13,9 @@ module Gitlab
# @param [Ci::JobArtifact] job_artifact
def initialize(job_artifact)
if job_artifact.local_store?
super(local_job_artifact_attributes(job_artifact))
super(**local_job_artifact_attributes(job_artifact))
else
super(remote_job_artifact_attributes(job_artifact))
super(**remote_job_artifact_attributes(job_artifact))
end
end
......
......@@ -13,9 +13,9 @@ module Gitlab
# @param [LfsObject] lfs_object
def initialize(lfs_object)
if lfs_object.local_store?
super(local_lfs_object_attributes(lfs_object))
super(**local_lfs_object_attributes(lfs_object))
else
super(remote_lfs_object_attributes(lfs_object))
super(**remote_lfs_object_attributes(lfs_object))
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment