Skip to content

Commit 97492c1

Browse files
sdagueSteve Martinelli
authored andcommitted
rxtx factor should be a float
The rxtx factor on compute flavors is a float in the API. OSC is currently blocking float values. Change-Id: Ifa9c14825f388d2821ff4b63ab8ae83fa9c8d88b
1 parent 55b37d5 commit 97492c1

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

doc/source/command-objects/flavor.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Create new flavor
4949

5050
.. option:: --rxtx-factor <factor>
5151

52-
RX/TX factor (default 1)
52+
RX/TX factor (default 1.0)
5353

5454
.. option:: --public
5555

openstackclient/compute/v2/flavor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ def get_parser(self, prog_name):
7676
)
7777
parser.add_argument(
7878
"--rxtx-factor",
79-
type=int,
79+
type=float,
8080
metavar="<factor>",
81-
default=1,
82-
help="RX/TX factor (default 1)",
81+
default=1.0,
82+
help="RX/TX factor (default 1.0)",
8383
)
8484
public_group = parser.add_mutually_exclusive_group()
8585
public_group.add_argument(

0 commit comments

Comments
 (0)