Before, creating a pool by providing *only* `pg_num` would result in an
error as it would produce `--pgp-num null`.
This commit fix this behavior by defaulting `pgp_num` value to `pg_num`.
Signed-off-by: Mathias Chapelain <mathias.chapelain@proton.ch>
(cherry picked from commit
f0f1dd986aab8b32fad55a8885faf5ed7ef66e06)
args.extend(['--pg_num',
user_pool_config['pg_num']['value'],
'--pgp_num',
- user_pool_config['pgp_num']['value']])
+ user_pool_config['pgp_num']['value'] or
+ user_pool_config['pg_num']['value']])
elif user_pool_config['target_size_ratio']['value']:
args.extend(['--target_size_ratio',
user_pool_config['target_size_ratio']['value']])