Do not require secure file for nodepoold

We currently don't read anything from the secure file, so requiring
it seems pointless and confusing.

Change-Id: I1ab809d41bbfe709cd4ee34cbc9c481eed993868
This commit is contained in:
David Shrewsbury 2017-03-23 08:37:06 -04:00
parent e9272a8b98
commit 7c1c7ed0c6
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,6 @@ class NodePoolDaemon(nodepool.cmd.NodepoolDaemonApp):
default='/etc/nodepool/nodepool.yaml',
help='path to config file')
parser.add_argument('-s', dest='secure',
default='/etc/nodepool/secure.conf',
help='path to secure file')
parser.add_argument('--no-webapp', action='store_true')
return parser

View File

@ -1344,7 +1344,8 @@ class NodePool(threading.Thread):
def loadConfig(self):
config = nodepool_config.loadConfig(self.configfile)
nodepool_config.loadSecureConfig(config, self.securefile)
if self.securefile:
nodepool_config.loadSecureConfig(config, self.securefile)
return config
def reconfigureZooKeeper(self, config):