Skip to content

Commit

Permalink
fixing a badly resolved conflict from a --rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Price committed Aug 12, 2011
1 parent a9b403f commit d58ed82
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cli/src/katello/client/config.py
Expand Up @@ -62,8 +62,9 @@ def __init__(self):

# read global configuration first
Config.parser.readfp(open(Config.PATH, 'r'), Config.PATH)
if os.path.exists(Config.USER):
Config.parser.readfp(open(Config.USER, 'r'), Config.USER)

# read user config if it exists
Config.parser.read(Config.USER)

@staticmethod
def save():
Expand All @@ -73,5 +74,5 @@ def save():
if not Config.parser:
raise Exception('Config.parser has not been initialized.')

# only writes to /etc/katello/client.conf
Config.parser.write(open(Config.PATH, 'w'))
# only writes to ~/.katello/client.conf
Config.parser.write(open(Config.USER, 'w'))

0 comments on commit d58ed82

Please sign in to comment.