Skip to content
Snippets Groups Projects
Commit d2cb797e authored by Bjarke Madsen's avatar Bjarke Madsen
Browse files

Add missing commas and GEANTOPEN to public

parent 969221b5
No related branches found
No related tags found
No related merge requests found
...@@ -67,9 +67,9 @@ DEFAULT_ORGANIZATIONS = [ ...@@ -67,9 +67,9 @@ DEFAULT_ORGANIZATIONS = [
"excluded_dashboards": [ "excluded_dashboards": [
"GÉANT Office devices", "GÉANT Office devices",
"GÉANT VM", "GÉANT VM",
"Lab Devices" "Lab Devices",
"IAS", "IAS",
"GEANTOPEN", "GÉANT Open",
"IAS Peers" "IAS Peers"
], ],
"excluded_folders": { "excluded_folders": {
...@@ -78,7 +78,8 @@ DEFAULT_ORGANIZATIONS = [ ...@@ -78,7 +78,8 @@ DEFAULT_ORGANIZATIONS = [
"IAS PRIVATE": True, "IAS PRIVATE": True,
"IAS PUBLIC": True, "IAS PUBLIC": True,
"IAS UPSTREAM": True, "IAS UPSTREAM": True,
"GWS PHY Upstream": True "GWS PHY Upstream": True,
"GEANTOPEN" : True,
} }
}, },
{ {
...@@ -106,7 +107,7 @@ DEFAULT_ORGANIZATIONS = [ ...@@ -106,7 +107,7 @@ DEFAULT_ORGANIZATIONS = [
"excluded_dashboards": [ "excluded_dashboards": [
"GÉANT Office devices", "GÉANT Office devices",
"GÉANT VM", "GÉANT VM",
"Lab Devices" "Lab Devices",
"IAS", "IAS",
"IAS Peers" "IAS Peers"
], ],
......
...@@ -30,7 +30,9 @@ def delete_dashboard(request: TokenRequest, dashboard, folder_id=None): ...@@ -30,7 +30,9 @@ def delete_dashboard(request: TokenRequest, dashboard, folder_id=None):
uid = dashboard.get('uid') uid = dashboard.get('uid')
if uid: if uid:
return _delete_dashboard(request, uid) return _delete_dashboard(request, uid)
elif dashboard.get('title') and folder_id: elif dashboard.get('title'):
# if a folder ID is not supplied,
# dashboard title should be globally unique
dash = _search_dashboard(request, dashboard, folder_id) dash = _search_dashboard(request, dashboard, folder_id)
if dash is None: if dash is None:
return True return True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment