[Kimchi-devel] [PATCH 06/10] bug fix: Sort repositories
Aline Manera
alinefm at linux.vnet.ibm.com
Tue Mar 18 17:04:11 UTC 2014
From: Aline Manera <alinefm at br.ibm.com>
Return a sorted list while listing the repository to make sure about
their position on UI
Signed-off-by: Aline Manera <alinefm at br.ibm.com>
---
src/kimchi/model/host.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/kimchi/model/host.py b/src/kimchi/model/host.py
index e5b6132..e2a12de 100644
--- a/src/kimchi/model/host.py
+++ b/src/kimchi/model/host.py
@@ -319,7 +319,7 @@ class RepositoriesModel(object):
if self.host_repositories is None:
raise InvalidOperation('KCHREPOS0014E')
- return self.host_repositories.getRepositories().keys()
+ return sorted(self.host_repositories.getRepositories())
def create(self, params):
if self.host_repositories is None:
--
1.7.10.4
More information about the Kimchi-devel
mailing list