]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
node-proxy: address a typo
authorGuillaume Abrioux <gabrioux@ibm.com>
Fri, 12 Jan 2024 09:09:15 +0000 (09:09 +0000)
committerGuillaume Abrioux <gabrioux@ibm.com>
Thu, 25 Jan 2024 16:11:54 +0000 (16:11 +0000)
while checking logs, I noticed the following message:

```
2024-01-12 09:08:03,751 - reporter - INFO - Reporter url set to https:10.10.10.11:7150/node-proxy/data
```

Although this is only a cosmetic issue as this variable
is only used for logging messages, let's fix it.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit 1c4a212eb8d9608630c518cbbf46ab97051b1bc0)

src/ceph-node-proxy/ceph_node_proxy/reporter.py

index 9e5521aa280b3cf3789912f16ae06d46b0bbf106..ab0fbc1af51519f4f0a344f6f0457ba79995c358 100644 (file)
@@ -24,7 +24,7 @@ class Reporter:
         self.reporter_port: str = reporter_port
         self.reporter_endpoint: str = reporter_endpoint
         self.log = Logger(__name__)
-        self.reporter_url: str = (f'{reporter_scheme}:{reporter_hostname}:'
+        self.reporter_url: str = (f'{reporter_scheme}://{reporter_hostname}:'
                                   f'{reporter_port}{reporter_endpoint}')
         self.log.logger.info(f'Reporter url set to {self.reporter_url}')