Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-gcemetadata for 
openSUSE:Factory checked in at 2026-01-29 17:45:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-gcemetadata (Old)
 and      /work/SRC/openSUSE:Factory/.python-gcemetadata.new.1995 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-gcemetadata"

Thu Jan 29 17:45:56 2026 rev:3 rq:1329722 version:1.1.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-gcemetadata/python-gcemetadata.changes    
2025-04-20 20:07:40.304362376 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-gcemetadata.new.1995/python-gcemetadata.changes
  2026-01-29 17:48:52.163326806 +0100
@@ -1,0 +2,6 @@
+Wed Jan 28 19:19:51 UTC 2026 - Sean Marlow <[email protected]>
+
+- Update to version 1.1.0
+  + Add licenses option in identity command.
+
+-------------------------------------------------------------------

Old:
----
  gcemetadata-1.0.4.tar.bz2

New:
----
  gcemetadata-1.1.0.tar.bz2

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

Other differences:
------------------
++++++ python-gcemetadata.spec ++++++
--- /var/tmp/diff_new_pack.rdL7QV/_old  2026-01-29 17:48:53.899401175 +0100
+++ /var/tmp/diff_new_pack.rdL7QV/_new  2026-01-29 17:48:53.915401860 +0100
@@ -25,7 +25,7 @@
 
 %define upstream_name gcemetadata
 Name:           python-gcemetadata
-Version:        1.0.4
+Version:        1.1.0
 Release:        0
 Summary:        Python module for collecting instance metadata from GCE
 License:        GPL-3.0-or-later

++++++ gcemetadata-1.0.4.tar.bz2 -> gcemetadata-1.1.0.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gcemetadata-1.0.4/Makefile 
new/gcemetadata-1.1.0/Makefile
--- old/gcemetadata-1.0.4/Makefile      2020-06-22 13:36:26.374985491 +0200
+++ new/gcemetadata-1.1.0/Makefile      2026-01-28 20:15:56.654821823 +0100
@@ -18,7 +18,7 @@
        rm -rf "$(NAME)-$(verSrc)"
 
 install:
-       python setup.py install --prefix="$(PREFIX)" --root="$(DESTDIR)"
+       python3 setup.py install --prefix="$(PREFIX)" --root="$(DESTDIR)"
        install -d -m 755 "$(DESTDIR)"/"$(MANDIR)"/man1
        install -m 644 man/man1/gcemetadata.1 "$(DESTDIR)"/"$(MANDIR)"/man1
        gzip "$(DESTDIR)"/"$(MANDIR)"/man1/gcemetadata.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gcemetadata-1.0.4/gcemetadata 
new/gcemetadata-1.1.0/gcemetadata
--- old/gcemetadata-1.0.4/gcemetadata   2020-06-22 13:36:26.374985491 +0200
+++ new/gcemetadata-1.1.0/gcemetadata   2026-01-28 20:15:56.654821823 +0100
@@ -24,8 +24,16 @@
 
 from gcemetadata.gcemetaExceptions import GCEMetadataException
 
-general_options = ['api', 'help', 'identity-format=', 'listapis', 'output=',
-                   'version', 'xml']
+general_options = [
+    'api',
+    'help',
+    'identity-format=',
+    'identity-licenses=',
+    'listapis',
+    'output=',
+    'version',
+    'xml'
+]
 opts_with_args = ['identity']
 opts_with_id_targets = ['disks', 'licenses', 'network-interfaces']
 
@@ -151,8 +159,9 @@
         # nature of the command. One can still retrieve metadata
         # on an instance that does not afford access to the guest-attributes
         if (
-                '--identity-format' in sys.argv[1:] and
-                'identity=' not in command_line_opts
+            ('--identity-format' in sys.argv[1:] or
+             '--identity-licenses' in sys.argv[1:]) and
+            'identity=' not in command_line_opts
         ):
             print(
                 'Unable to access instance identity information',
@@ -225,6 +234,14 @@
                 sys.exit(1)
             meta.set_identity_format(val)
             continue
+        elif opt == '--identity-licenses':
+            supported_vals = ['TRUE', 'FALSE']
+            if val not in supported_vals:
+                msg = '--identity-licenses possible values: "%s"'
+                print(msg % supported_vals, file=sys.stderr)
+                sys.exit(1)
+            meta.set_identity_licenses(val)
+            continue
         elif opt == '--licenseid':
             try:
                 meta.set_license_id(val)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gcemetadata-1.0.4/lib/gcemetadata/VERSION 
new/gcemetadata-1.1.0/lib/gcemetadata/VERSION
--- old/gcemetadata-1.0.4/lib/gcemetadata/VERSION       2020-06-22 
13:36:26.374985491 +0200
+++ new/gcemetadata-1.1.0/lib/gcemetadata/VERSION       2026-01-28 
20:15:56.654821823 +0100
@@ -1 +1 @@
-1.0.4
+1.1.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gcemetadata-1.0.4/lib/gcemetadata/gcemetadata.py 
new/gcemetadata-1.1.0/lib/gcemetadata/gcemetadata.py
--- old/gcemetadata-1.0.4/lib/gcemetadata/gcemetadata.py        2020-06-22 
13:36:26.374985491 +0200
+++ new/gcemetadata-1.1.0/lib/gcemetadata/gcemetadata.py        2026-01-28 
20:15:56.654821823 +0100
@@ -41,6 +41,7 @@
         self.header = {'Metadata-Flavor': 'Google'}
         self.identity_arg = None
         self.identity_format = 'standard'
+        self.identity_licenses = 'FALSE'
         self.license_data_shown = []
         self.license_id = -1
         self.net_data_shown = []
@@ -77,8 +78,10 @@
     def _add_arguments(self, option):
         """Add an argument to the uri"""
         arg_map = {
-            'identity': 'audience=%s&format=%s' % (
-                self.identity_arg, self.identity_format
+            'identity': 'audience=%s&format=%s&licenses=%s' % (
+                self.identity_arg,
+                self.identity_format,
+                self.identity_licenses
             )
         }
         if option in arg_map.keys():
@@ -364,6 +367,10 @@
         """Set the format for the identity token, full or standard"""
         self.identity_format = id_format
 
+    def set_identity_licenses(self, id_licenses):
+        """Set the licenses value, TRUE or FALSE"""
+        self.identity_licenses = id_licenses
+
     def set_license_id(self, license_id):
         """Set the id for the license to query"""
         known_ids = self._get_item_id_list('licenses')

Reply via email to