Compare commits
2 Commits
e00189e21f
...
0d3e515909
Author | SHA1 | Date | |
---|---|---|---|
0d3e515909 | |||
2ac1b84133 |
4
vm.py
4
vm.py
@ -34,7 +34,7 @@ import ovh
|
||||
import ovh.exceptions
|
||||
from collections import namedtuple
|
||||
|
||||
BASE = os.path.dirname(os.path.abspath(__file__))
|
||||
BASE = os.path.dirname(os.path.realpath(__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:
|
||||
except (ovh.exceptions.InvalidCredential, ovh.exceptions.NotCredential):
|
||||
req = ovh.Client().request_consumerkey([
|
||||
{'method': 'GET', 'path': '/ip'},
|
||||
{'method': 'GET', 'path': '/dedicated/server'},
|
||||
|
Loading…
x
Reference in New Issue
Block a user