engine: resources: Add the proper prefix to grouped http resources
Resources that can be grouped into the http:server resource must have that prefix. Grouping is basically hierarchical, and without that common prefix, it means we'd have to special-case our grouping algorithm.
This commit is contained in:
@@ -50,7 +50,7 @@ else
|
||||
for pkg in `go list -e ./... | grep -v "^${base}/vendor/" | grep -v "^${base}/examples/" | grep -v "^${base}/test/" | grep -v "^${base}/old" | grep -v "^${base}/old/" | grep -v "^${base}/tmp" | grep -v "^${base}/tmp/" | grep -v "^${base}/integration"`; do
|
||||
echo -e "\ttesting: $pkg"
|
||||
|
||||
if [ "$pkg" = "github.com/purpleidea/mgmt/engine/resources/http_ui" ]; then
|
||||
if [ "$pkg" = "github.com/purpleidea/mgmt/engine/resources/http_server_ui" ]; then
|
||||
continue # skip this special main package
|
||||
fi
|
||||
|
||||
|
||||
@@ -130,7 +130,7 @@ function reflowed-comments() {
|
||||
base=$(go list .)
|
||||
for pkg in `go list -e ./... | grep -v "^${base}/vendor/" | grep -v "^${base}/examples/" | grep -v "^${base}/test/" | grep -v "^${base}/old" | grep -v "^${base}/old/" | grep -v "^${base}/tmp" | grep -v "^${base}/tmp/"`; do
|
||||
|
||||
if [ "$pkg" = "github.com/purpleidea/mgmt/engine/resources/http_ui" ]; then
|
||||
if [ "$pkg" = "github.com/purpleidea/mgmt/engine/resources/http_server_ui" ]; then
|
||||
continue # skip this special main package
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user