Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add display names for FileDepot models #20863

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions app/models/file_depot_nfs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions app/models/file_depot_s3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions app/models/file_depot_swift.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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