small reworks in frontend and scripts, mostly finalized ansible deploy script -- still needs testing
This commit is contained in:
parent
f41dfc4f86
commit
e57f803a52
25 changed files with 440 additions and 90 deletions
19
tomlTest.py
Normal file
19
tomlTest.py
Normal file
|
@ -0,0 +1,19 @@
|
|||
import toml
|
||||
|
||||
tomlConf = toml.load('./config.toml')
|
||||
|
||||
print(tomlConf)
|
||||
barcos = {k: v for k, v in tomlConf["barco"].items()}
|
||||
print()
|
||||
print(barcos)
|
||||
|
||||
newBarcos = {k: v for k,v in barcos["novi"].items()}
|
||||
|
||||
print(newBarcos)
|
||||
|
||||
for pos in newBarcos.keys():
|
||||
atrs = newBarcos[pos]
|
||||
print(atrs)
|
||||
ip = atrs['ip']
|
||||
# etc
|
||||
# launch scripty thingy with atrs[IP], itd
|
Loading…
Add table
Add a link
Reference in a new issue