move pcucontrol package into pcucontrol module.
[pcucontrol.git] / pcucontrol / models / ManualPCU.py
diff --git a/pcucontrol/models/ManualPCU.py b/pcucontrol/models/ManualPCU.py
new file mode 100644 (file)
index 0000000..3a21cd9
--- /dev/null
@@ -0,0 +1,13 @@
+from pcucontrol.reboot import *
+
+class ManualPCU(PCUControl):
+       supported_ports = [22,23,80,443]
+
+       def run_http(self, node_port, dryrun):
+               if not dryrun:
+                       # TODO: send email message to monitor admin requesting manual
+                       # intervention.  This should always be an option for ridiculous,
+                       # custom jobs.
+                       pass
+               return 0
+