summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFeng Pan <fpan@redhat.com>2017-08-28 09:20:25 -0400
committerFeng Pan <fpan@redhat.com>2017-08-28 09:20:25 -0400
commitf8c3e75d3ab421a0a97e07c21051d3f7c3fd1583 (patch)
tree5edf8e1f277883d0e76723e7734164c0ff1d43e6
parent2af337a7d3a26a034a94f3698b1b1b3512d2c135 (diff)
Add argument types for deploy.py
Add data type for integer arguments to avoid str to int comparison exceptions. Change-Id: Ifa40e1cc8588df6d618185882bba71f7ce7b9a1d Signed-off-by: Feng Pan <fpan@redhat.com>
-rw-r--r--apex/deploy.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/apex/deploy.py b/apex/deploy.py
index 6a08b36f..c374e2e4 100644
--- a/apex/deploy.py
+++ b/apex/deploy.py
@@ -123,22 +123,26 @@ def create_deploy_parser():
deploy_parser.add_argument('--virtual-computes',
dest='virt_compute_nodes',
default=1,
+ type=int,
help='Number of Virtual Compute nodes to create'
' and use during deployment (defaults to 1'
' for noha and 2 for ha)')
deploy_parser.add_argument('--virtual-cpus',
dest='virt_cpus',
default=4,
+ type=int,
help='Number of CPUs to use per Overcloud VM in'
' a virtual deployment (defaults to 4)')
deploy_parser.add_argument('--virtual-default-ram',
dest='virt_default_ram',
default=8,
+ type=int,
help='Amount of default RAM to use per '
'Overcloud VM in GB (defaults to 8).')
deploy_parser.add_argument('--virtual-compute-ram',
dest='virt_compute_ram',
default=None,
+ type=int,
help='Amount of RAM to use per Overcloud '
'Compute VM in GB (defaults to 8). '
'Overrides --virtual-default-ram arg for '