From d5b60c6ac8d6a401452a81f1f9168d7ebbcfd804 Mon Sep 17 00:00:00 2001 From: dwertent Date: Mon, 1 Nov 2021 13:52:40 +0200 Subject: [PATCH] update config api --- README.md | 5 +++++ cautils/getter/armoapiutils.go | 2 +- smoke_testing/smoke_utils.py | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5626034f..17eadbc3 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,11 @@ Want to contribute? Want to discuss something? Have an issue? # Options and examples +## Tutorials + +* [Overview](https://youtu.be/wdBkt_0Qhbg) +* [Scanning Kubernetes YAML files](https://youtu.be/Ox6DaR7_4ZI) + ## Install on Windows **Requires powershell v5.0+** diff --git a/cautils/getter/armoapiutils.go b/cautils/getter/armoapiutils.go index 83d43513..5699ed25 100644 --- a/cautils/getter/armoapiutils.go +++ b/cautils/getter/armoapiutils.go @@ -39,7 +39,7 @@ func (armoAPI *ArmoAPI) getAccountConfig(customerGUID, clusterName string) strin u := url.URL{} u.Scheme = "https" u.Host = armoAPI.apiURL - u.Path = "api/v1/customerConfiguration" + u.Path = "api/v1/armoCustomerConfiguration" q := u.Query() q.Add("customerGUID", customerGUID) diff --git a/smoke_testing/smoke_utils.py b/smoke_testing/smoke_utils.py index 3a3fda9f..bc9ce452 100644 --- a/smoke_testing/smoke_utils.py +++ b/smoke_testing/smoke_utils.py @@ -8,7 +8,7 @@ def get_exec_from_args(args: list): def run_command(command): try: - return str(subprocess.check_output(command)) + return f"{subprocess.check_output(command)}" except Exception as e: - return e + return f"{e}"