Hello community,

here is the log from the commit of package python-azure-agent for 
openSUSE:Leap:15.2 checked in at 2020-05-11 08:40:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-azure-agent (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.python-azure-agent.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-azure-agent"

Mon May 11 08:40:22 2020 rev:30 rq:802244 version:2.2.45

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-azure-agent/python-azure-agent.changes  
2020-02-26 13:33:11.830349713 +0100
+++ 
/work/SRC/openSUSE:Leap:15.2/.python-azure-agent.new.2738/python-azure-agent.changes
        2020-05-11 08:40:23.283159469 +0200
@@ -1,0 +2,13 @@
+Tue Mar 24 20:41:35 UTC 2020 - Robert Schweikert <[email protected]>
+
+- Add paa_use_hostnamectl.patch (bsc#1167601, bsc#1167602)
+  + Set the hostname using hostnamectl to ensure setting is
+    properly applied
+
+-------------------------------------------------------------------
+Mon Feb  3 15:53:16 UTC 2020 - Dominique Leuenberger <[email protected]>
+
+- BuildRequire pkgconfig(udev) instead of udev: allow OBS to
+  shortcut through -mini flavors.
+
+-------------------------------------------------------------------

New:
----
  paa_use_hostnamectl.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-azure-agent.spec ++++++
--- /var/tmp/diff_new_pack.wLkbJP/_old  2020-05-11 08:40:23.727160430 +0200
+++ /var/tmp/diff_new_pack.wLkbJP/_new  2020-05-11 08:40:23.735160447 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-azure-agent
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -27,6 +27,7 @@
 Patch1:         agent-no-auto-update.patch
 Patch6:         paa_force_py3_sle15.patch
 Patch9:         paa_sudo_sle15_nopwd.patch
+Patch10:        paa_use_hostnamectl.patch
 BuildRequires:  dos2unix
 
 BuildRequires:  distribution-release
@@ -48,7 +49,7 @@
 BuildRequires:  python-setuptools
 BuildRequires:  python-xml
 %endif
-BuildRequires:  udev
+BuildRequires:  pkgconfig(udev)
 Requires:       eject
 Requires:       grep
 Requires:       iptables
@@ -122,6 +123,7 @@
 %if 0%{?suse_version} && 0%{?suse_version} > 1315
 %patch9
 %endif
+%patch10
 
 %build
 %if 0%{?suse_version} && 0%{?suse_version} > 1315

++++++ paa_use_hostnamectl.patch ++++++
--- azurelinuxagent/common/osutil/suse.py.orig
+++ azurelinuxagent/common/osutil/suse.py
@@ -82,6 +82,11 @@ class SUSEOSUtil(SUSE11OSUtil):
         super(SUSEOSUtil, self).__init__()
         self.dhclient_name = 'wickedd-dhcp4'
 
+    def set_hostname(self, hostname):
+        shellutil.run(
+            "hostnamectl set-hostname {0}".format(hostname), chk_err=False
+        )
+
     def stop_dhcp_service(self):
         cmd = "systemctl stop {0}".format(self.dhclient_name)
         return shellutil.run(cmd, chk_err=False)

Reply via email to