diff options
author | vrachev <vlad.rachev@mongodb.com> | 2020-07-07 16:48:49 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-07-07 21:04:42 +0000 |
commit | 09d7df7e8c53c593c254f589611931226a423ae9 (patch) | |
tree | 90872ae79554daa959b2c64c8b81182c23438b79 /buildscripts/powercycle_operations.py | |
parent | 60ad20ef7e78f0282ec50f2940549a4d80e5943b (diff) | |
download | mongo-09d7df7e8c53c593c254f589611931226a423ae9.tar.gz |
SERVER-48690 Drive powercycle setup commands with expansions.yml
Diffstat (limited to 'buildscripts/powercycle_operations.py')
-rw-r--r-- | buildscripts/powercycle_operations.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/buildscripts/powercycle_operations.py b/buildscripts/powercycle_operations.py new file mode 100644 index 00000000000..a83a134191f --- /dev/null +++ b/buildscripts/powercycle_operations.py @@ -0,0 +1,14 @@ +#!/usr/bin/env python3 +"""Command line utility for executing operations on remote hosts.""" + +import os.path +import sys + +# Get relative imports to work when the package is not installed on the PYTHONPATH. +if __name__ == "__main__" and __package__ is None: + sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) + +# pylint: disable=wrong-import-position +import buildscripts.powercycle.cli as cli + +cli.main(sys.argv) |