Skip to content

Commit

Permalink
Add MAD Default jobs to command.json
Browse files Browse the repository at this point in the history
  • Loading branch information
cecpk committed Jan 25, 2020
1 parent c9225a8 commit 18c6e9d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 9 deletions.
30 changes: 29 additions & 1 deletion commands.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,33 @@
"TYPE": "jobType.SMART_UPDATE",
"SYNTAX": "de.grennith.rgc.remotegpscontroller"
}
],
"Reboot-Device":
[
{
"TYPE": "jobType.REBOOT",
"SYNTAX": ""
}
],
"Restart-Pogo":
[
{
"TYPE": "jobType.RESTART",
"SYNTAX": ""
}
],
"Stop-Pogo":
[
{
"TYPE": "jobType.STOP",
"SYNTAX": ""
}
],
"Start-Pogo":
[
{
"TYPE": "jobType.START",
"SYNTAX": ""
}
]
}
}
8 changes: 0 additions & 8 deletions mapadroid/madmin/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,6 @@ def uploaded_files(datetimeformat, jobs):
for command in jobs:
files.append({'jobname': command, 'creation': '', 'type': 'jobType.CHAIN'})

processJson = ({'jobname': 'Reboot-Device', 'creation': '', 'type': 'jobType.REBOOT'})
files.append(processJson)
processJson = ({'jobname': 'Restart-Pogo', 'creation': '', 'type': 'jobType.RESTART'})
files.append(processJson)
processJson = ({'jobname': 'Stop-Pogo', 'creation': '', 'type': 'jobType.STOP'})
files.append(processJson)
processJson = ({'jobname': 'Start-Pogo', 'creation': '', 'type': 'jobType.START'})
files.append(processJson)
return files


Expand Down

0 comments on commit 18c6e9d

Please sign in to comment.