Permalink
Browse files

Changes "apikey" to "key" when extracting keys from the json that BUG…

…swarm returns on key creation.
  • Loading branch information...
aturley committed Oct 18, 2011
1 parent 83a06bb commit 5c093a7fa141932afacefcbe6d8b4e11361a18ec
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/swarmtoolscore.py
View
@@ -62,10 +62,10 @@ def set_keys(hostname, user_id, password):
if config.has_option("Keys", "configuration") == False:
key_obj = create_key(hostname, user_id, password, "configuration")
- config.set("Keys", "configuration", key_obj["apikey"])
+ config.set("Keys", "configuration", key_obj["key"])
if config.has_option("Keys", "participation") == False:
key_obj = create_key(hostname, user_id, password, "participation")
- config.set("Keys", "participation", key_obj["apikey"])
+ config.set("Keys", "participation", key_obj["key"])
with open("swarm.cfg", "wb") as configfile:
config.write(configfile)

0 comments on commit 5c093a7

Please sign in to comment.