diff --git a/designateclient/cli/records.py b/designateclient/cli/records.py index 48e92e7..6e276ca 100644 --- a/designateclient/cli/records.py +++ b/designateclient/cli/records.py @@ -100,7 +100,7 @@ class CreateRecordCommand(base.CreateCommand): if parsed_args.ttl is not None: record.ttl = parsed_args.ttl - if parsed_args.priority: + if parsed_args.priority is not None: record.priority = parsed_args.priority if parsed_args.description: @@ -157,7 +157,7 @@ class UpdateRecordCommand(base.UpdateCommand): if parsed_args.no_priority: record.priority = None - elif parsed_args.priority: + elif parsed_args.priority is not None: record.priority = parsed_args.priority if parsed_args.no_description: diff --git a/designateclient/resources/schemas/v1/record.json b/designateclient/resources/schemas/v1/record.json index 7487500..cecc9fd 100644 --- a/designateclient/resources/schemas/v1/record.json +++ b/designateclient/resources/schemas/v1/record.json @@ -42,7 +42,7 @@ "priority": { "type": ["integer", "null"], "description": "DNS Record Priority", - "minimum": 1, + "minimum": 0, "maximum": 65535 }, "ttl": {