From 1c43bc322f5799b715b86b46542754d7596751cb Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Sun, 31 Aug 2014 08:58:16 -0500 Subject: [PATCH] Perform region validation early to be more explicit about invalid region failures --- cloud/rax_dns | 2 +- cloud/rax_dns_record | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cloud/rax_dns b/cloud/rax_dns index e726851d609..dacc4c672fe 100644 --- a/cloud/rax_dns +++ b/cloud/rax_dns @@ -160,7 +160,7 @@ def main(): state = module.params.get('state') ttl = module.params.get('ttl') - setup_rax_module(module, pyrax) + setup_rax_module(module, pyrax, False) rax_dns(module, comment, email, name, state, ttl) diff --git a/cloud/rax_dns_record b/cloud/rax_dns_record index 561758f4fd8..a28f5b9a9b3 100644 --- a/cloud/rax_dns_record +++ b/cloud/rax_dns_record @@ -312,7 +312,7 @@ def main(): ttl = module.params.get('ttl') record_type = module.params.get('type') - setup_rax_module(module, pyrax) + setup_rax_module(module, pyrax, False) if record_type.upper() == 'PTR': if not server and not loadbalancer: