Skip to content

Commit

Permalink
Solved an issue when the user tries to create a policy and the contai…
Browse files Browse the repository at this point in the history
…ner contains a dash in the name.
  • Loading branch information
Raúl Casanova Marqués committed Oct 7, 2016
1 parent 21db647 commit 04991ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions api/filters/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from django.conf.urls import url

import views

urlpatterns = [
Expand All @@ -9,13 +10,13 @@

# Deploy to tenant container or object
url(r'^/(?P<account>\w+)/deploy/(?P<filter_id>[0-9]+)/?$', views.filter_deploy),
url(r'^/(?P<account>\w+)/(?P<container>\w+)/deploy/(?P<filter_id>[0-9]+)/?$', views.filter_deploy),
url(r'^/(?P<account>\w+)/(?P<container>\w+)/(?P<swift_object>\w+)/deploy/(?P<filter_id>[0-9]+)/?$', views.filter_deploy),
url(r'^/(?P<account>\w+)/(?P<container>[-\w]+)/deploy/(?P<filter_id>[0-9]+)/?$', views.filter_deploy),
url(r'^/(?P<account>\w+)/(?P<container>[-\w]+)/(?P<swift_object>[-\w]+)/deploy/(?P<filter_id>[0-9]+)/?$', views.filter_deploy),

# Undeploy to tenant container or object
# url(r'^/(?P<account>\w+)/undeploy/(?P<filter_id>[0-9]+)/?$', views.filter_undeploy),
# url(r'^/(?P<account>\w+)/(?P<container>\w+)/undeploy/(?P<filter_id>[0-9]+)/?$', views.filter_undeploy),
# url(r'^/(?P<account>\w+)/(?P<container>\w+)/(?P<swift_object>\w+)/undeploy/(?P<filter_id>[0-9]+)/?$', views.filter_undeploy),
# url(r'^/(?P<account>\w+)/(?P<container>[-\w]+)/undeploy/(?P<filter_id>[0-9]+)/?$', views.filter_undeploy),
# url(r'^/(?P<account>\w+)/(?P<container>[-\w]+)/(?P<swift_object>[-\w]+)/undeploy/(?P<filter_id>[0-9]+)/?$', views.filter_undeploy),

url(r'^/dependencies/?$', views.dependency_list),
url(r'^/dependencies/(?P<dependency_id>\w+)/?$', views.dependency_detail),
Expand Down
2 changes: 1 addition & 1 deletion api/swift/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
url(r'^/tenants/?$', views.tenants_list),
url(r'^/storage_policies/?$', views.storage_policy_list),
url(r'^/spolicies/?$', views.storage_policies),
url(r'^/locality/(?P<account>\w+)(?:/(?P<container>\w+))(?:/(?P<swift_object>\w+))?/$', views.locality_list),
url(r'^/locality/(?P<account>\w+)(?:/(?P<container>[-\w]+))(?:/(?P<swift_object>[-\w]+))?/$', views.locality_list),
url(r'^/sort_nodes/?$', views.sort_list),
url(r'^/sort_nodes/(?P<id>[0-9]+)/?$', views.sort_detail),
]

0 comments on commit 04991ad

Please sign in to comment.