Commit 076a38b6ed17401f74985e7ed1c57be86794ca66
1 parent
aa9683a7
Exists in
dev
config print
Showing
1 changed file
with
8 additions
and
2 deletions
Show diff stats
src/agent/Agent.py
... | ... | @@ -238,6 +238,8 @@ class Agent: |
238 | 238 | self.config.save() |
239 | 239 | ''' |
240 | 240 | |
241 | + self.routine_process() | |
242 | + | |
241 | 243 | # Sub-level loop (only if ACTIVE) |
242 | 244 | if self.is_active(): |
243 | 245 | self.set_status(self.STATUS_PROCESS_LOOP) |
... | ... | @@ -258,6 +260,10 @@ class Agent: |
258 | 260 | self._iter_num += 1 |
259 | 261 | |
260 | 262 | |
263 | + | |
264 | + def routine_process(self): | |
265 | + pass | |
266 | + | |
261 | 267 | def purge_commands(self): |
262 | 268 | """ |
263 | 269 | Delete commands (which I am recipient of) older than COMMANDS_PEREMPTION_HOURS (like 48h) |
... | ... | @@ -374,13 +380,13 @@ class Agent: |
374 | 380 | print("Configuration file is {}".format(self.config.get_configfile())) |
375 | 381 | alias = self.config.get_aliases('unit')[0] |
376 | 382 | namevalue = self.config.get_paramvalue(alias,'unit','name') |
377 | - print("Unit alias is {}. Name is {}".format(alias,namevalue)) | |
383 | + print("Unit alias is {}. Name is {}".format(alias,namevalue), ":") | |
378 | 384 | unit_subtags = self.config.get_unit_subtags() |
379 | 385 | for unit_subtag in unit_subtags: |
380 | 386 | aliases = self.config.get_aliases(unit_subtag) |
381 | 387 | for alias in aliases: |
382 | 388 | namevalue = self.config.get_paramvalue(alias,unit_subtag,'name') |
383 | - print("Unit {} alias is {}. Name is {}".format(unit_subtag,alias,namevalue)) | |
389 | + print(f"- {unit_subtag} alias is {alias}. Name is {namevalue}") | |
384 | 390 | print("------------------------------------------") |
385 | 391 | #params = self.config.get_params(unit_alias) |
386 | 392 | #for param in params: | ... | ... |