Fix DnsRecord ownership check. (#718)
Smoke Test / Run basic test suite (push) Successful in 3m45s
Details
Publish / Build and publish (push) Successful in 58s
Details
Deploy Test / Run deploy test suite (push) Successful in 3m3s
Details
K8s Deploy Test / Run deploy test suite on kind/k8s (push) Failing after 1m3s
Details
Webapp Test / Run webapp test suite (push) Successful in 2m44s
Details
Smoke Test / Run basic test suite (push) Successful in 3m45s
Details
Publish / Build and publish (push) Successful in 58s
Details
Deploy Test / Run deploy test suite (push) Successful in 3m3s
Details
K8s Deploy Test / Run deploy test suite on kind/k8s (push) Failing after 1m3s
Details
Webapp Test / Run webapp test suite (push) Successful in 2m44s
Details
* Fix DnsRecord ownership check. * Var namespull/719/head v1.1.0-428b051-202401301932
parent
a750b645b9
commit
428b05158e
|
|
@ -59,8 +59,8 @@ def process_app_deployment_request(
|
|||
dns_record = laconic.get_record(dns_crn)
|
||||
if dns_record:
|
||||
matched_owner = match_owner(app_deployment_request, dns_record)
|
||||
if not matched_owner and dns_record.request:
|
||||
matched_owner = match_owner(app_deployment_request, laconic.get_record(dns_record.request, require=True))
|
||||
if not matched_owner and dns_record.attributes.request:
|
||||
matched_owner = match_owner(app_deployment_request, laconic.get_record(dns_record.attributes.request, require=True))
|
||||
|
||||
if matched_owner:
|
||||
print("Matched DnsRecord ownership:", matched_owner)
|
||||
|
|
|
|||
|
|
@ -40,8 +40,8 @@ def process_app_removal_request(ctx,
|
|||
matched_owner = match_owner(app_removal_request, deployment_record, dns_record)
|
||||
|
||||
# Or of the original deployment request.
|
||||
if not matched_owner and deployment_record.request:
|
||||
matched_owner = match_owner(app_removal_request, laconic.get_record(deployment_record.request, require=True))
|
||||
if not matched_owner and deployment_record.attributes.request:
|
||||
matched_owner = match_owner(app_removal_request, laconic.get_record(deployment_record.attributes.request, require=True))
|
||||
|
||||
if matched_owner:
|
||||
print("Matched deployment ownership:", matched_owner)
|
||||
|
|
|
|||
Loading…
Reference in New Issue