Alon Bar-Lev has uploaded a new change for review.

Change subject: core: miniyum: return group id and not group name
......................................................................

core: miniyum: return group id and not group name

group name returns a description, while groupid returns the group name.

Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1063941
Change-Id: I6b1b1386c76a6649fa40fa9571755b64f47bb448
Signed-off-by: Alon Bar-Lev <[email protected]>
---
M ChangeLog
M src/otopi/miniyum.py
2 files changed, 8 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/otopi refs/changes/42/24342/1

diff --git a/ChangeLog b/ChangeLog
index b383e57..d1da6f2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 otopi -- oVirt Task Oriented Pluggable Installer/Implementation
 
+????-??-?? - Version 1.2.0_???
+
+ * yum: return group id and not name out of query groups.
+
 2014-01-20 - Version 1.2.0_beta
 
  * core: do not load plugins from empty directories.
diff --git a/src/otopi/miniyum.py b/src/otopi/miniyum.py
index 5131d54..fd14d5f 100755
--- a/src/otopi/miniyum.py
+++ b/src/otopi/miniyum.py
@@ -860,13 +860,15 @@
                 for grp in installed:
                     ret.append({
                         'operation': 'installed',
-                        'name': grp.name,
+                        'name': grp.groupid,
+                        'description': grp.name,
                         'uservisible': grp.user_visible
                     })
                 for grp in available:
                     ret.append({
                         'operation': 'available',
-                        'name': grp.name,
+                        'name': grp.groupid,
+                        'description': grp.name,
                         'uservisible': grp.user_visible
                     })
         except yum.Errors.GroupsError as e:


-- 
To view, visit http://gerrit.ovirt.org/24342
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6b1b1386c76a6649fa40fa9571755b64f47bb448
Gerrit-PatchSet: 1
Gerrit-Project: otopi
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to