File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,6 @@ def find_cert(domain):
109
109
def setup_cdn (domain , bucket ):
110
110
"""To Setup a cloud frot for given domain and bucket."""
111
111
dist = dist_manager .find_matching_dist (domain )
112
- print ("Distribution aleady exists. Creating Alias Record." )
113
112
if not dist :
114
113
cert = cert_manager .find_matching_cert (domain )
115
114
if not cert :
@@ -118,6 +117,9 @@ def setup_cdn(domain, bucket):
118
117
dist = dist_manager .create_dist (domain , cert )
119
118
print ("Waiting for distribution deployment..." )
120
119
dist_manager .await_deploy (dist )
120
+ else :
121
+ print ("Distribution aleady exists. Creating Alias Record." )
122
+
121
123
zone = domain_manager .find_hosted_zones (domain ) \
122
124
or domain_manager .create_hosted_zone (domain )
123
125
domain_manager .create_cf_domain_record (zone , domain , dist ['DomainName' ])
You can’t perform that action at this time.
0 commit comments