Skip to content

Commit

Permalink
rubocop tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
terrywbrady committed Feb 26, 2024
1 parent 58b634e commit 1140118
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src-colladmin/actions/tag_action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,14 @@ def urls
res = {}
return res unless @state == 'running'

@config.fetch('server-configs', {}).each do |confname, sconf|
@config.fetch('server-configs', {}).each_value do |sconf|
match = sconf.fetch('match', '.*')
next unless @name =~ Regexp.new(match)

sconf.fetch('endpoints', {}).fetch(@subservice, {}).each do |k, v|
if v =~ /^http/
res[k] = v
elsif v =~ /^\//
elsif v =~ %r{^/}
# UI uses this
res[k] = "https://#{@name}.cdlib.org#{v}"
else
Expand All @@ -87,6 +88,7 @@ def format_urls

def notes(action)
return '' if urls.empty?

note = @config.fetch('notes', {}).fetch(@subservice, '').split("\n").join(',')
if @subservice == 'access'
srvr = action.get_ssm('store/zoo/AccessLarge')
Expand Down

0 comments on commit 1140118

Please sign in to comment.