Skip to content

Commit

Permalink
Bugfixes for docker_registry dockercfg and login handling, fixes #114
Browse files Browse the repository at this point in the history
  • Loading branch information
bflad committed Apr 13, 2014
1 parent 6b1446a commit 5233b43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions libraries/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ def dockercfg_parse
dockercfg[k].merge!(dockercfg_parse_auth(v['auth']))
end
dockercfg
rescue
nil
end

def dockercfg_parse_auth(str)
Expand Down
2 changes: 1 addition & 1 deletion providers/registry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def command_timeout_error_message
end

def logged_in?
@current_resource.server
@current_resource.server ? true : false
end

def login
Expand Down

0 comments on commit 5233b43

Please sign in to comment.