mirror of
https://github.com/kubescape/kubescape.git
synced 2026-04-15 06:58:11 +00:00
update config api
This commit is contained in:
@@ -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+**
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user