File tree 3 files changed +7
-5
lines changed
3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ def cache_control(response):
130
130
def ensure_cookie ():
131
131
"""Ensure that the cookie is present, otherwise redirect to the cookie page."""
132
132
if not request .path .startswith ('/static' ):
133
- if (request .path not in ['/' , '/cookie' ]) and (data_cookie not in request .cookies ):
133
+ if (request .path not in ['/' , '/cookie' , '/_ce_status' ]) and (data_cookie not in request .cookies ):
134
134
return redirect ('/cookie' )
135
135
136
136
@app .route ('/' )
@@ -204,9 +204,11 @@ def path():
204
204
def header ():
205
205
"""manipulation page"""
206
206
ns = get_eph_ns ()
207
+ site = get_site ()
207
208
return render_template ('manipulation.html' ,
208
209
title = "MCN Practical: Manipulation" ,
209
- ns = ns
210
+ ns = ns ,
211
+ site = site
210
212
)
211
213
212
214
@app .route ('/portability' )
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ <h3><strong>Test Criteria</strong></h3>
128
128
...
129
129
"request_headers": {
130
130
"x-mcn-namespace": "wiggly-yellowtail",
131
- "x-mcn-src-site": "cluster-xxxxxxxx ",
131
+ "x-mcn-src-site": "{{ site or ' cluster-xxxxxxxxx' }} ",
132
132
},
133
133
...
134
134
}
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ <h2><strong>Exercise 2: Find a Friend</strong></h2>
83
83
< p >
84
84
Do you have a friend working on the lab?
85
85
Have they updated their advertise policy to use the virtual site?
86
- Find thier < strong > ephemeral namespace</ strong > (or use the one provided in the form).
86
+ Find their < strong > ephemeral namespace</ strong > (or use the one provided in the form).
87
87
</ p >
88
88
89
89
< div >
@@ -100,7 +100,7 @@ <h2><strong>Exercise 2: Find a Friend</strong></h2>
100
100
< h3 > < strong > Test Criteria</ strong > </ h3 >
101
101
102
102
< div class ="alert alert-secondary " role ="alert ">
103
- < strong > Use this ephemeral NS if a friend is unavailable.</ strong >
103
+ < strong > Use the example ephemeral NS if a friend is unavailable.</ strong >
104
104
</ div >
105
105
106
106
< pre class ="hljs language-http rounded "> < code >
You can’t perform that action at this time.
0 commit comments