self.max_running = system.cpu_count * 2
def connect_to_hub(self):
- huburl = self.config.get("daemon", "server", PAKFIRE_HUB)
+ url = self.config.get("daemon", "server", PAKFIRE_HUB)
# Host Credentials
hostname = self.config.get("daemon", "hostname", system.hostname)
password = self.config.get("daemon", "secret")
- if not (hostname and password):
+ if not hostname or not password:
raise RuntimeError("Host credentials are not set")
# Create connection to the hub
- return hub.Hub(huburl, hostname, password)
+ return hub.Hub(url, hostname, password)
def run(self, heartbeat=30):
"""