From 7f8068ea8784e8a5c86b138f1c234cce8f84c18c Mon Sep 17 00:00:00 2001 From: checktheroads Date: Sun, 28 Jun 2020 23:39:03 -0700 Subject: [PATCH] updates for hyperglass-agent 0.1.5 --- docs/docs/agent/setup.mdx | 6 ++++-- hyperglass/execution/execute.py | 5 +++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/docs/docs/agent/setup.mdx b/docs/docs/agent/setup.mdx index c793d44..1477669 100644 --- a/docs/docs/agent/setup.mdx +++ b/docs/docs/agent/setup.mdx @@ -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: diff --git a/hyperglass/execution/execute.py b/hyperglass/execution/execute.py index 5d2b634..e796529 100644 --- a/hyperglass/execution/execute.py +++ b/hyperglass/execution/execute.py @@ -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)