diff --git a/app/models/file_depot_nfs.rb b/app/models/file_depot_nfs.rb index 92c092d838d..d7b99f9ff33 100644 --- a/app/models/file_depot_nfs.rb +++ b/app/models/file_depot_nfs.rb @@ -6,4 +6,8 @@ def self.requires_credentials? def self.uri_prefix "nfs" end + + def self.display_name(number = 1) + n_('NFS', 'NFS', number) + end end diff --git a/app/models/file_depot_s3.rb b/app/models/file_depot_s3.rb index 079c66f1212..ac292bf713d 100644 --- a/app/models/file_depot_s3.rb +++ b/app/models/file_depot_s3.rb @@ -76,4 +76,8 @@ def translate_exception(err) MiqException::MiqHostError.new("Unexpected response returned from system: #{err.message}") end end + + def self.display_name(number = 1) + n_('AWS S3', 'AWS S3', number) + end end diff --git a/app/models/file_depot_swift.rb b/app/models/file_depot_swift.rb index f7be3fe5cbf..f773a952c8b 100644 --- a/app/models/file_depot_swift.rb +++ b/app/models/file_depot_swift.rb @@ -64,4 +64,8 @@ def merged_uri(uri, api_port) uri.query = query_elements.join('&').presence uri.to_s end + + def self.display_name(number = 1) + n_('OpenStack Swift', 'OpenStack Swift', number) + end end