[Fuego] [PATCH 11/16] ftc:rm-jobs: remove limitation of 4 words

Bird, Timothy Tim.Bird at sony.com
Thu Mar 30 22:50:26 UTC 2017



> -----Original Message-----
> From Daniel Sangorrin on Wednesday, March 29, 2017 6:05 PM
> To: fuego at lists.linuxfoundation.org
> Subject: [Fuego] [PATCH 11/16] ftc:rm-jobs: remove limitation of 4 words
> 
> This is so that batch or other jobs can be removed too
> 
> Signed-off-by: Daniel Sangorrin <daniel.sangorrin at toshiba.co.jp>
> ---
>  engine/scripts/ftc | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/engine/scripts/ftc b/engine/scripts/ftc
> index e08c56a..6f7d635 100755
> --- a/engine/scripts/ftc
> +++ b/engine/scripts/ftc
> @@ -952,8 +952,6 @@ def do_rm_jobs(conf, options):
>      else:
>          for opt in options:
>              jobs = [job['name'] for job in server.get_jobs()]
> -            if len(opt.split('.')) != 4:
> -                raise Exception('%s does not have 4 parts.' % opt)
>              pattern = '^' + opt
>              pattern = pattern.replace('.', '\.')
>              pattern = pattern.replace('*', '\w*')
> --
> 2.7.4

Acked-by: Tim Bird
 -- Tim



More information about the Fuego mailing list