summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKiall Mac Innes <kiall@hp.com>2013-10-27 14:52:28 +0000
committerKiall Mac Innes <kiall@hp.com>2013-10-27 14:52:29 +0000
commit67147265207435a58748e13e0565967781cc5c61 (patch)
treea07f0b5e4ed6caccbc31d2b9d0fb89274cb80521
parentd22d1afa590704a2cc70b35f1298e74ccf848c33 (diff)
downloadpython-designateclient-67147265207435a58748e13e0565967781cc5c61.tar.gz
Ensure TTL is treated as an int in the CLI
Change-Id: Icd6e56adb416946af98bcc1dd1fbbe16c2aef8c8
-rw-r--r--designateclient/cli/domains.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/designateclient/cli/domains.py b/designateclient/cli/domains.py
index 2672973..59787bb 100644
--- a/designateclient/cli/domains.py
+++ b/designateclient/cli/domains.py
@@ -76,7 +76,7 @@ class UpdateDomainCommand(base.UpdateCommand):
parser.add_argument('id', help="Domain ID")
parser.add_argument('--name', help="Domain Name")
parser.add_argument('--email', help="Domain Email")
- parser.add_argument('--ttl', help="Time To Live (Seconds)")
+ parser.add_argument('--ttl', type=int, help="Time To Live (Seconds)")
return parser