Commit 7a51281a authored by Jose A. Lopes's avatar Jose A. Lopes
Browse files

Fix whitespace and typos in comments


Signed-off-by: default avatarJose A. Lopes <jabolopes@google.com>
Reviewed-by: default avatarHrvoje Ribicic <riba@google.com>
parent 79cf373a
......@@ -432,7 +432,7 @@ class LUInstanceCreate(LogicalUnit):
raise errors.OpPrereqError("Cannot do IP address check without a name"
" check", errors.ECODE_INVAL)
# add nic for instance communication
# add NIC for instance communication
if self.op.instance_communication:
nic_name = "%s%s" % (constants.INSTANCE_COMMUNICATION_NIC_PREFIX,
self.op.instance_name)
......
......@@ -237,7 +237,7 @@ numericalReadFn :: JSON.JSON a => (String -> JSON.Result a)
-> [(String, JSON.JSValue)] -> JSON.JSValue -> JSON.Result a
numericalReadFn _ _ v@(JSON.JSRational _ _) = JSON.readJSON v
numericalReadFn f _ (JSON.JSString x) = f $ JSON.fromJSString x
numericalReadFn _ _ _ = JSON.Error "A numerical field has to be a number or\
numericalReadFn _ _ _ = JSON.Error "A numerical field has to be a number or\
\ a string."
-- | Sets the read function to also accept string parsable by the given
......
......@@ -11,7 +11,7 @@ representation should go into 'Ganeti.HTools.Types'.
{-
Copyright (C) 2012, 2013 Google Inc.
Copyright (C) 2012, 2013, 2014 Google Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -405,7 +405,7 @@ $(THH.declareLADT ''String "CVErrorCode"
])
$(THH.makeJSONInstance ''CVErrorCode)
-- | Dynamic device modification, just add\/remove version.
-- | Dynamic device modification, just add/remove version.
$(THH.declareLADT ''String "DdmSimple"
[ ("DdmSimpleAdd", "add")
, ("DdmSimpleRemove", "remove")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment