register_ovh_account: pass domain as argument

This commit is contained in:
Gilles Grandou 2019-10-07 09:23:44 +02:00
parent 306d4b536e
commit 67335c198b

View File

@ -1,8 +1,13 @@
#!/usr/bin/python3 #!/usr/bin/python3
import sys
from ovh import ovh from ovh import ovh
domain = 'example.com' if len(sys.argv) != 2:
print('usage: {} <domain>'.format(sys.argv[0]))
sys.exit(1)
domain = sys.argv[1]
client = ovh.Client() client = ovh.Client()