Skip to content

Commit

Permalink
Set a default ID when none is set in the config file
Browse files Browse the repository at this point in the history
  • Loading branch information
David Parker committed Oct 15, 2016
1 parent c081ffe commit 66d87d7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/ibmiotf/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,9 +497,12 @@ def __onAppStatus(self, client, userdata, message):
Parse a standard application configuration file
'''
def ParseConfigFile(configFilePath):
parms = configparser.ConfigParser({"domain": "internetofthings.ibmcloud.com",
"type": "standalone",
"clean-session": "true"})
parms = configparser.ConfigParser({
"id": str(uuid.uuid4()),
"domain": "internetofthings.ibmcloud.com",
"type": "standalone",
"clean-session": "true"
})
sectionHeader = "application"

try:
Expand Down

0 comments on commit 66d87d7

Please sign in to comment.