From 611ce842f931b95d8c49d6f6e0133af80d65a3ca Mon Sep 17 00:00:00 2001 From: Torin Sandall Date: Mon, 19 Dec 2016 17:57:56 -0800 Subject: [PATCH] Update to OPA v0.3.0 --- main.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/main.go b/main.go index 99e0f382..067cb907 100644 --- a/main.go +++ b/main.go @@ -171,17 +171,14 @@ func QueryDataAPI(opaURL string, doc string, r authorization.Request) (*http.Res return nil, err } - global := url.QueryEscape(string(bs)) - - // The policy declares an input named "request" that is intended to contain - // the Docker API request. - url := fmt.Sprintf("%s/data%s?global=request:%s", opaURL, doc, global) + // Set the request document to the Docker request content. + url := fmt.Sprintf("%s/data%s?request=:%s", opaURL, doc, url.QueryEscape(string(bs))) return http.Get(url) } const ( - version = "0.1.2" + version = "0.1.3" ) func main() {