Skip to content

Commit

Permalink
Merge pull request #252 from nuwang/fix_dns_rec_validation
Browse files Browse the repository at this point in the history
Fix incorrect validation in dns record
  • Loading branch information
nuwang authored Oct 28, 2020
2 parents 3460765 + a5066cb commit 0d1a7aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cloudbridge/providers/gcp/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -1771,7 +1771,7 @@ def find(self, dns_zone, **kwargs):
limit=None, marker=None)

def create(self, dns_zone, name, type, data, ttl=None):
GCPDnsZone.assert_valid_resource_name(name)
GCPDnsRecord.assert_valid_resource_name(name)
body = {
'kind': 'dns#change',
"additions": [
Expand Down
2 changes: 1 addition & 1 deletion cloudbridge/providers/openstack/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -1423,7 +1423,7 @@ def find(self, dns_zone, **kwargs):
limit=None, marker=None)

def create(self, dns_zone, name, type, data, ttl=None):
OpenStackDnsZone.assert_valid_resource_name(name)
OpenStackDnsRecord.assert_valid_resource_name(name)

return OpenStackDnsRecord(
self.provider, dns_zone,
Expand Down

0 comments on commit 0d1a7aa

Please sign in to comment.