[libvirt] [jenkins-ci PATCH v2 11/12] lcitool: Implement the 'projects' action

Andrea Bolognani abologna at redhat.com
Thu Jul 12 15:19:28 UTC 2018


Signed-off-by: Andrea Bolognani <abologna at redhat.com>
---
 guests/lcitool | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/guests/lcitool b/guests/lcitool
index 3bd5fa7..d42b7e7 100755
--- a/guests/lcitool
+++ b/guests/lcitool
@@ -296,7 +296,8 @@ class Application:
                   update   prepare hosts and keep them updated
 
                 informational actions:
-                  hosts  list all known hosts
+                  hosts     list all known hosts
+                  projects  list all known projects
 
                 glob patterns are supported for HOSTS
                 """),
@@ -317,6 +318,10 @@ class Application:
         for host in self._inventory.expand_pattern("all"):
             print(host)
 
+    def _action_projects(self, hosts):
+        for project in self._projects.expand_pattern("all"):
+            print(project)
+
     def _action_install(self, hosts):
         flavor = self._config.get_flavor()
 
-- 
2.17.1




More information about the libvir-list mailing list