diff options
author | Jose M. Guisado <jguisado@soleta.eu> | 2023-03-01 10:57:53 +0100 |
---|---|---|
committer | Jose M. Guisado <jguisado@soleta.eu> | 2023-03-02 09:33:33 +0100 |
commit | a1edbe904b3019ec77b54fdd48c01183f4c73483 (patch) | |
tree | 7d2280c13a1d9df4e0e97c6c61acbd504f523d56 /tests/units/test_0001_probe.py | |
parent | 1858950af194ef73d3ee589ae7104f7d3def9f38 (diff) |
legacy: rewrite ogChangeRepo
Drop ogChangeRepo Bash script in favor of a native Python
approach. Use only necessary subprocess calls instead of bringing
all the logic of this function into a Bash script black box.
ogChangeRepo unmounts the current OpenGnsys image samba folder
(/opt/opengnsys/images) and mounts (connects to) a new directory using
the new provided ip address. Keeping access mode from previous mount.
If anything goes wrong when mounting the new directory, it will fallback
to mounting the previous directory.
If no previous OpenGnsys image samba directory is detected, this
functions tries to mount the new directory anyway. In this case,
it will raise CalledProcessError if something goes wrong.
Diffstat (limited to 'tests/units/test_0001_probe.py')
0 files changed, 0 insertions, 0 deletions