[Kimchi-devel] [PATCH] [Kimchi] Bug fix #1123: Do not rely on Wok configuration to get host information

Aline Manera posted 1 patch 7 years ago
Failed in applying to current master (apply log)
model/peers.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[Kimchi-devel] [PATCH] [Kimchi] Bug fix #1123: Do not rely on Wok configuration to get host information
Posted by Aline Manera 7 years ago
The host information is only part of nginx configuration. So get the
information of the running system to configure federation feature over
openSLP

Signed-off-by: Aline Manera <alinefm@linux.vnet.ibm.com>
---
 model/peers.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/model/peers.py b/model/peers.py
index 1be606b..c0dccce 100644
--- a/model/peers.py
+++ b/model/peers.py
@@ -34,7 +34,7 @@ class PeersModel(object):
             return
 
         # register server on openslp
-        hostname = socket.getfqdn(wok_config.get("server", "host"))
+        hostname = socket.getfqdn()
         port = wok_config.get("server", "proxy_port")
         self.url = hostname + ":" + port
 
-- 
2.9.3

_______________________________________________
Kimchi-devel mailing list
Kimchi-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/kimchi-devel
Re: [Kimchi-devel] [PATCH] [Kimchi] Bug fix #1123: Do not rely on Wok configuration to get host information
Posted by Daniel Henrique Barboza 7 years ago
Reviewed-by: Daniel Barboza <danielhb@linux.vnet.ibm.com>

On 03/21/2017 01:55 PM, Aline Manera wrote:
> The host information is only part of nginx configuration. So get the
> information of the running system to configure federation feature over
> openSLP
>
> Signed-off-by: Aline Manera <alinefm@linux.vnet.ibm.com>
> ---
>   model/peers.py | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/model/peers.py b/model/peers.py
> index 1be606b..c0dccce 100644
> --- a/model/peers.py
> +++ b/model/peers.py
> @@ -34,7 +34,7 @@ class PeersModel(object):
>               return
>
>           # register server on openslp
> -        hostname = socket.getfqdn(wok_config.get("server", "host"))
> +        hostname = socket.getfqdn()
>           port = wok_config.get("server", "proxy_port")
>           self.url = hostname + ":" + port
>

_______________________________________________
Kimchi-devel mailing list
Kimchi-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/kimchi-devel
Re: [Kimchi-devel] [PATCH] [Kimchi] Bug fix #1123: Do not rely on Wok configuration to get host information
Posted by Aline Manera 7 years ago
Applied. Thanks.

Regards,

Aline Manera

_______________________________________________
Kimchi-devel mailing list
Kimchi-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/kimchi-devel