Skip to content

Commit b6065ac

Browse files
committed
fix(certificates): type fix, it is detach not deatch
1 parent b3662b0 commit b6065ac

6 files changed

Lines changed: 6 additions & 6 deletions

rootfs/api/models/domain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def delete(self, *args, **kwargs):
5858

5959
# Deatch cert, updates k8s
6060
if self.certificate:
61-
self.certificate.deatch(domain=str(self.domain))
61+
self.certificate.detach(domain=str(self.domain))
6262

6363
# Delete from DB
6464
return super(Domain, self).delete(*args, **kwargs)

rootfs/api/tests/test_certificate_use_case_1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class CertificateUseCase1Test(TestCase):
1212

1313
"""
1414
Tests creation of domain SSL certificate and attach the
15-
certificate to a domain and then deatch
15+
certificate to a domain and then detach
1616
"""
1717

1818
fixtures = ['tests.json']

rootfs/api/tests/test_certificate_use_case_2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class CertificateUseCase2Test(TestCase):
1212

1313
"""
1414
Tests creation of 2 domains and SSL certificate.
15-
Attach the certificate to only one domain and then deatch.
15+
Attach the certificate to only one domain and then detach.
1616
"""
1717

1818
fixtures = ['tests.json']

rootfs/api/tests/test_certificate_use_case_3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class CertificateUseCase3Test(TestCase):
1212

1313
"""
1414
Tests creation of 2 domains and 2 SSL certificate.
15-
Attach each certificate to a matching domain and then deatch.
15+
Attach each certificate to a matching domain and then detach.
1616
"""
1717

1818
fixtures = ['tests.json']

rootfs/api/tests/test_certificate_use_case_4.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class CertificateUseCase4Test(TestCase):
1212

1313
"""
1414
Tests creation of 3 domains (one is a wildcard) and 3 SSL certificate (no wildcards).
15-
Attach each certificate to a matching domain and then deatch.
15+
Attach each certificate to a matching domain and then detach.
1616
"""
1717

1818
fixtures = ['tests.json']

rootfs/api/tests/test_certificate_use_case_5.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class CertificateUseCase5Test(TestCase):
1212

1313
"""
1414
Tests creation of 3 domains (one is a wildcard) and 2 SSL certificate (one is a wildcard).
15-
Attach each certificate to a matching domain(s) and then deatch.
15+
Attach each certificate to a matching domain(s) and then detach.
1616
"""
1717

1818
fixtures = ['tests.json']

0 commit comments

Comments
 (0)