Commit 982ed68e authored by Adeodato Simo's avatar Adeodato Simo Committed by Iustin Pop
Browse files

Trivial style fixes



Add missing closing brackets and fix a typo.
Signed-off-by: default avatarAdeodato Simo <dato@google.com>
Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 7d88f255
...@@ -60,7 +60,7 @@ _LIST_STOR_DEF_FIELDS = [ ...@@ -60,7 +60,7 @@ _LIST_STOR_DEF_FIELDS = [
] ]
#: headers (and full field list for L{ListNodes} #: headers (and full field list) for L{ListNodes}
_LIST_HEADERS = { _LIST_HEADERS = {
"name": "Node", "pinst_cnt": "Pinst", "sinst_cnt": "Sinst", "name": "Node", "pinst_cnt": "Pinst", "sinst_cnt": "Sinst",
"pinst_list": "PriInstances", "sinst_list": "SecInstances", "pinst_list": "PriInstances", "sinst_list": "SecInstances",
...@@ -81,7 +81,7 @@ _LIST_HEADERS = { ...@@ -81,7 +81,7 @@ _LIST_HEADERS = {
} }
#: headers (and full field list for L{ListStorage} #: headers (and full field list) for L{ListStorage}
_LIST_STOR_HEADERS = { _LIST_STOR_HEADERS = {
constants.SF_NODE: "Node", constants.SF_NODE: "Node",
constants.SF_TYPE: "Type", constants.SF_TYPE: "Type",
...@@ -225,7 +225,7 @@ def ListNodes(opts, args): ...@@ -225,7 +225,7 @@ def ListNodes(opts, args):
@param opts: the command line options selected by the user @param opts: the command line options selected by the user
@type args: list @type args: list
@param args: should be an empty list @param args: nodes to list, or empty for all
@rtype: int @rtype: int
@return: the desired exit code @return: the desired exit code
......
...@@ -214,7 +214,7 @@ class LogicalUnit(object): ...@@ -214,7 +214,7 @@ class LogicalUnit(object):
This method is called before starting to execute the opcode, and it should This method is called before starting to execute the opcode, and it should
update all the parameters of the opcode to their canonical form (e.g. a update all the parameters of the opcode to their canonical form (e.g. a
short node name must be fully expanded after this method has successfully short node name must be fully expanded after this method has successfully
completed). This way locking, hooks, logging, ecc. can work correctly. completed). This way locking, hooks, logging, etc. can work correctly.
LUs which implement this method must also populate the self.needed_locks LUs which implement this method must also populate the self.needed_locks
member, as a dict with lock levels as keys, and a list of needed lock names member, as a dict with lock levels as keys, and a list of needed lock names
......
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