summaryrefslogtreecommitdiffstats
path: root/scripts/designate_import.py
diff options
context:
space:
mode:
authorLusheng Ji <lji@research.att.com>2017-10-25 20:51:30 -0400
committerLusheng Ji <lji@research.att.com>2017-10-26 12:33:29 +0000
commit85812470a882048a741001d109a68e994f4aad39 (patch)
tree5889bf5e2d81e2314bb381784ff2f0b1130d9afd /scripts/designate_import.py
parent557c2cd33a111c48212d400860637f65edb4fcb6 (diff)
Fix file not found error
In addition the following: Disable designate import function Install ping and nc to docker container (Dockerfile) Issue-Id: DCAEGEN2-127 Change-Id: I13a8684260e9352bf2ae5efb7f6837f23a58cf97 Signed-off-by: Lusheng Ji <lji@research.att.com>
Diffstat (limited to 'scripts/designate_import.py')
-rwxr-xr-xscripts/designate_import.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/designate_import.py b/scripts/designate_import.py
index df09f50..9b0fc7d 100755
--- a/scripts/designate_import.py
+++ b/scripts/designate_import.py
@@ -43,12 +43,15 @@ def main():
print("Usgae: {} input_file [auth_url username password tenant]".format(sys.argv[0]))
exit(1)
if len(sys.argv) == 6:
- print("Creating DNS records using record defs from {}, authurl {}, usernaem {}, tenant {}".format(
+ print("Creating DNS records using record defs from {}, authurl {}, username {}, tenant {}".format(
sys.argv[1], sys.argv[2], sys.argv[3], sys.argv[5]))
else:
- print("Creating DNS records using record defs from {}, authurl {}, usernaem {}, tenant {}".format(
+ print("Creating DNS records using record defs from {}, authurl {}, username {}, tenant {}".format(
shell.env('OS_AUTH_URL'), shell.env('OS_USERNAME'), shell.env('OS_PASSWORD'), shell.env('OS_PROJECT_NAME')))
+ print("Usage: {} disabled until changed".format(sys.argv[0]))
+ exit(1)
+
inputfilepath = sys.argv[1]
auth = ""