wrapping up deploy items for aarch
[apex.git] / build / patches / tacker-client-fix-symmetrical.patch
1 From 9630f711a88a69480c44d6ac21244d9a8b0d92c7 Mon Sep 17 00:00:00 2001
2 From: Tim Rozet <trozet@redhat.com>
3 Date: Fri, 18 Aug 2017 16:22:23 -0400
4 Subject: [PATCH] Fixes passing boolean as string for symmetrical
5
6 Bug where 'True'/'False' strings were being passed in REST to Tacker
7 service which would end up throwing an exception because the DB type for
8 symmetrical is boolean/small int.  This converts it to boolean in the
9 client.
10
11 Closes-Bug: 1711550
12
13 Change-Id: Ide2aeab73b1dd88beb6e491e6b07cdee9fb7e48a
14 Signed-off-by: Tim Rozet <trozet@redhat.com>
15 ---
16
17 diff --git a/tackerclient/tacker/v1_0/nfvo/vnffg.py b/tackerclient/tacker/v1_0/nfvo/vnffg.py
18 index 729cd19..92b98ed 100644
19 --- a/tackerclient/tacker/v1_0/nfvo/vnffg.py
20 +++ b/tackerclient/tacker/v1_0/nfvo/vnffg.py
21 @@ -97,7 +97,9 @@
22              help=_('List of logical VNFD name to VNF instance name mapping.  '
23                     'Example: VNF1:my_vnf1,VNF2:my_vnf2'))
24          parser.add_argument(
25 -            '--symmetrical', metavar='{True,False}',
26 +            '--symmetrical',
27 +            action='store_true',
28 +            default=False,
29              help=_('Should a reverse path be created for the NFP'))
30          parser.add_argument(
31              '--param-file',