[PATCH] Added job_status to func-transmit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---

scripts/func-transmit      |    9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
mode change 100644 => 100755 scripts/func-transmit
mode change 100644 => 100755 scripts/func-transmit-demo

diff --git a/scripts/func-transmit b/scripts/func-transmit
old mode 100644
new mode 100755
index 1a0e670..efd79eb
--- a/scripts/func-transmit
+++ b/scripts/func-transmit
@@ -52,7 +52,14 @@ if method == "list_minions":
    servers = minion_set.get_all_hosts()
    servers.sort()
    results = servers
- +elif method == "job_status":
+    server_spec = "*"
+    overlord = fc.Overlord(server_spec)
+    (return_code, async_results) = overlord.job_status(params.get('parameters'))
+    results = {
+        "return_code" : return_code,
+        "async_results" : async_results
+    }
else:
    # scan more arguments
    async      = params.get('async', False)
diff --git a/scripts/func-transmit-demo b/scripts/func-transmit-demo
old mode 100644
new mode 100755
--
1.5.5.1



--
Dott. Ing. Mornati Marco
Byte-Code s.r.l
via Antonio Cechov, 1
San Giuliano Milanese (MI)
E-Mail: mmornati@xxxxxxxxxxxxx


_______________________________________________
Func-list mailing list
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list

[Index of Archives]     [Fedora Users]     [Linux Networking]     [Fedora Legacy List]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux