summaryrefslogtreecommitdiff
path: root/ironic/drivers/modules/irmc/common.py
diff options
context:
space:
mode:
authorZhiQiang Fan <aji.zqfan@gmail.com>2015-10-22 00:33:21 -0600
committerZhiQiang Fan <aji.zqfan@gmail.com>2015-10-26 23:32:06 -0600
commit0d8b14a0fec8481a5476ef9145611108a3478148 (patch)
tree8cf6b11b09e639da755702ba4921da0ad5f65f3d /ironic/drivers/modules/irmc/common.py
parent23ea8585395a971018c9090a08d77c28728b7ded (diff)
downloadironic-0d8b14a0fec8481a5476ef9145611108a3478148.tar.gz
Use oslo_config new type PortOpt for port options
The oslo_config library provides new type PortOpt to validate the range of port now. Change-Id: I90f1c3bc418426c53ba8f16b4cbbfa128606c4e7
Diffstat (limited to 'ironic/drivers/modules/irmc/common.py')
-rw-r--r--ironic/drivers/modules/irmc/common.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ironic/drivers/modules/irmc/common.py b/ironic/drivers/modules/irmc/common.py
index 9cf2ecb33..4b95315b2 100644
--- a/ironic/drivers/modules/irmc/common.py
+++ b/ironic/drivers/modules/irmc/common.py
@@ -26,10 +26,10 @@ from ironic.common.i18n import _
scci = importutils.try_import('scciclient.irmc.scci')
opts = [
- cfg.IntOpt('port',
- default=443,
- help=_('Port to be used for iRMC operations, either 80 or '
- '443')),
+ cfg.PortOpt('port',
+ default=443,
+ help=_('Port to be used for iRMC operations, either 80 or '
+ '443')),
cfg.StrOpt('auth_method',
default='basic',
help=_('Authentication method to be used for iRMC operations, '