[ovs-dev] [PATCH 8/9] debian: Cleanup config template for Lintian

Justin Pettit jpettit at nicira.com
Thu Apr 1 03:21:26 UTC 2010


Lintian wants "boolean" to be used instead of "select" if there are only
two choices.  It also wants short descriptions to not end in a period.
---
 debian/openvswitch-switch-config.templates |   27 ++++++++++++---------------
 1 files changed, 12 insertions(+), 15 deletions(-)

diff --git a/debian/openvswitch-switch-config.templates b/debian/openvswitch-switch-config.templates
index b2c2184..bfb228d 100644
--- a/debian/openvswitch-switch-config.templates
+++ b/debian/openvswitch-switch-config.templates
@@ -60,7 +60,7 @@ _Description: Switch-to-controller access method:
 
 Template: openvswitch-switch/discover
 Type: note
-_Description: Preparing to discover controller.
+_Description: Preparing to discover controller
  The setup program will now attempt to discover the OpenFlow controller.
  Controller discovery may take up to 30 seconds.  Please be patient.
  .
@@ -149,22 +149,20 @@ _Description: The switch CA certificate could not be retrieved.
  PKI server can be reached through it.
 
 Template: openvswitch-switch/verify-controller-ca
-Type: select
-_Choices: yes, no
-Default: yes
+Type: boolean
+Default: true
 _Description: Is ${fingerprint} the controller CA's fingerprint?
  If a man-in-the-middle attack is possible in your network
  environment, check that the controller CA's fingerprint is really
- ${fingerprint}.  Answer "yes" if it matches, "no" if
+ ${fingerprint}.  Answer "true" if it matches, "false" if
  there is a discrepancy.
  .
  If a man-in-the-middle attack is not a concern, there is no need to
- verify the fingerprint.  Simply answer "yes".
+ verify the fingerprint.  Simply answer "true".
 
 Template: openvswitch-switch/send-cert-req
-Type: select
-_Choices: yes, no
-Default: yes
+Type: boolean
+Default: true
 _Description: Send certificate request to switch CA?
  Before it can connect to the controller over SSL, the Open vSwitch's
  key must be signed by the switch certificate authority (CA) located 
@@ -172,11 +170,11 @@ _Description: Send certificate request to switch CA?
  the OpenFlow controller.  A signing request can be sent to the PKI
  server now.
  .
- Answer "yes" to send a signing request to the switch CA now.  This is
+ Answer "true" to send a signing request to the switch CA now.  This is
  ordinarily the correct choice.  There is no harm in sending a given
  signing request more than once.
  .
- Answer "no" to skip sending a signing request to the switch CA.
+ Answer "false" to skip sending a signing request to the switch CA.
  Unless the request has already been sent to the switch CA, manual
  sending of the request and signing will be necessary.
 
@@ -189,8 +187,7 @@ _Description: The certificate request could not be sent.
  available at ${pki-uri}.
 
 Template: openvswitch-switch/fetch-switch-cert
-Type: select
-_Choices: yes, no
+Type: boolean
 _Description: Fetch signed switch certificate from PKI server?
  Before it can connect to the controller over SSL, the Open vSwitch's
  key must be signed by the switch certificate authority (CA) located 
@@ -202,11 +199,11 @@ _Description: Fetch signed switch certificate from PKI server?
  certificate has not yet been retrieved.  Manual action may need to be
  taken at the PKI server to approve the signing request.
  .
- Answer "yes" to attempt to retrieve the signed switch certificate
+ Answer "true" to attempt to retrieve the signed switch certificate
  from the switch CA.  If the switch certificate request has been
  signed at the PKI server, this is the correct choice.
  .
- Answer "no" to postpone switch configuration.  The configuration
+ Answer "false" to postpone switch configuration.  The configuration
  process must be restarted later, when the switch certificate request
  has been signed.
 
-- 
1.7.0.3





More information about the dev mailing list