box / box/wavectl

url composition is broken is the wavefrontHost has a trailing slash.

Open
#11 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
16
Forks
10
PR merge metrics
No merged PRs in 30d

Description

For example specifying a config file like this does not work

Problematic
Wrting the following config to the config file at /Users/hbaba/.wavectl/config:
```
{
"apiToken": "9b9d16ef-3549-4e88-b4a2-f5e0736f2388",
"wavefrontHost": "https://box.wavefront.com/"
}

```

Working
```
{
"apiToken": "9b9d16ef-3549-4e88-b4a2-f5e0736f2388",
"wavefrontHost": "https://box.wavefront.com"
}

```

The difference is the trailing slash in the wavefronHost value.

I ran into this while using config files.
I am sure the same happens if the --wavefrontHost command line parameter is passed.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.