Re: Async Call (Func 0.21, Certmaster 0.20)

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

 



On Thu, 3 Jul 2008 15:41:03 +0200
"Krzysztof A. Adamski" <krzysztofa@xxxxxxxxx> wrote:

> On Thu, 03 Jul 2008 11:09:00 +0200
> Marco Mornati <mmornati@xxxxxxxxxxxxx> wrote:
> 
> > All work correctly, as you can see, but How I can read the list of
> > the file inside my TMP folder? I know that is not an usual command,
> > but could be some test cases where I need to read some output
> > strings and not only the result of run command...
> It's a bug. Working on this.
It's solved now in mainline, you can try it. The patch was trivial:
diff --git a/func/overlord/cmd_modules/call.py b/func/overlord/cmd_modules/call.py
index 648bcab..e2989f1 100644
--- a/func/overlord/cmd_modules/call.py
+++ b/func/overlord/cmd_modules/call.py
@@ -147,7 +147,7 @@ class Call(base_command.BaseCommand):
         if not self.options.jobstatus:
             results = self.overlord_obj.run(self.module, self.method, self.method_args)
         else:
-            (return_code, async_results) = self.overlord_obj.job_status(float(self.module))
+            (return_code, async_results) = self.overlord_obj.job_status(self.module)
             res = self.format_return((return_code, async_results))
             print res
             return async_results


I'm going to work a little bit on the output of async calls in 
command line so the format can change a little bit (it's not 
really consistent right now). 

_______________________________________________
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