Change type of ssh_port option from Str to Int

The type of CONF option virtual_power_ssh_port was incorrectly defaulted
to Str. This can cause Paramiko to raise when casting to %d.

Fixes bug 1157824.

Change-Id: I30ddd1ff0da45f8392085249f1bd2a539b201a7e
This commit is contained in:
Devananda van der Veen 2013-03-20 09:19:44 -07:00
parent 7bfbc19021
commit 123826e516

View File

@ -31,8 +31,8 @@ opts = [
cfg.StrOpt('virtual_power_ssh_host',
default='',
help='ip or name to virtual power host'),
cfg.StrOpt('virtual_power_ssh_port',
default='22',
cfg.IntOpt('virtual_power_ssh_port',
default=22,
help='Port to use for ssh to virtual power host'),
cfg.StrOpt('virtual_power_type',
default='virsh',