forked from mirrors/thatmattlove-hyperglass
updates for hyperglass-agent 0.1.5
This commit is contained in:
parent
138ee5c999
commit
7f8068ea87
2 changed files with 9 additions and 2 deletions
|
|
@ -12,12 +12,14 @@ Before you get to far, check to make sure your hyperglass server and hyperglass-
|
|||
|
||||
## Setup
|
||||
|
||||
Just like with hyperglass, the hyperglass agent is easy to set up. To automatically create an application directory, generate SSL certificates, generate and symlink a systemd file, and generate a random secret, run:
|
||||
To automatically create an application directory, generate SSL certificates, generate and symlink a systemd file, and generate a random secret, run:
|
||||
|
||||
```shell-session
|
||||
$ hyperglass setup
|
||||
$ hyperglass-agent setup
|
||||
```
|
||||
|
||||
If SSL is enabled (which is the default), take note of the secret key — you'll use this in the `password` for this device in hyperglass.
|
||||
|
||||
:::note
|
||||
You can also run the setup wizard with certain options disabled, if needed:
|
||||
|
||||
|
|
|
|||
|
|
@ -346,6 +346,11 @@ class Connect:
|
|||
)
|
||||
log.debug(f"Decoded Response: {decoded}")
|
||||
responses += (decoded,)
|
||||
elif raw_response.status_code == 204:
|
||||
raise ResponseEmpty(
|
||||
params.messages.no_output,
|
||||
device_name=self.device.display_name,
|
||||
)
|
||||
|
||||
else:
|
||||
log.error(raw_response.text)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue