Compare commits

..

No commits in common. "0d3e51590979d6d663cfec5e8e914ba4567dce75" and "e00189e21f6843a944ea272d59b18971c7033ee4" have entirely different histories.

4
vm.py
View File

@ -34,7 +34,7 @@ import ovh
import ovh.exceptions
from collections import namedtuple
BASE = os.path.dirname(os.path.realpath(__file__))
BASE = os.path.dirname(os.path.abspath(__file__))
config = {
'vg': '/dev/vg',
@ -458,7 +458,7 @@ def main(gargv):
if __name__ == '__main__':
try:
exit(main(sys.argv[1:]))
except (ovh.exceptions.InvalidCredential, ovh.exceptions.NotCredential):
except ovh.exceptions.InvalidCredential:
req = ovh.Client().request_consumerkey([
{'method': 'GET', 'path': '/ip'},
{'method': 'GET', 'path': '/dedicated/server'},