Revision 3cf06dd4
b/lib/backend.py | ||
---|---|---|
1 | 1 |
# |
2 | 2 |
# |
3 | 3 |
|
4 |
# Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Google Inc. |
|
4 |
# Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Google Inc.
|
|
5 | 5 |
# |
6 | 6 |
# This program is free software; you can redistribute it and/or modify |
7 | 7 |
# it under the terms of the GNU General Public License as published by |
... | ... | |
136 | 136 |
|
137 | 137 |
@type instance_name: string |
138 | 138 |
@param instance_name: The name of the instance |
139 |
|
|
140 |
@type trail: list of reasons |
|
141 |
@param trail: reason trail |
|
142 |
|
|
139 | 143 |
@rtype: None |
140 | 144 |
|
141 | 145 |
""" |
... | ... | |
3623 | 3627 |
|
3624 | 3628 |
|
3625 | 3629 |
def ValidateOS(required, osname, checks, osparams): |
3626 |
"""Validate the given OS' parameters.
|
|
3630 |
"""Validate the given OS parameters. |
|
3627 | 3631 |
|
3628 | 3632 |
@type required: boolean |
3629 | 3633 |
@param required: whether absence of the OS should translate into |
b/lib/cmdlib/common.py | ||
---|---|---|
376 | 376 |
@type node_uuids: list |
377 | 377 |
@param node_uuids: the list of nodes on which we should check |
378 | 378 |
@type osname: string |
379 |
@param osname: the name of the hypervisor we should use
|
|
379 |
@param osname: the name of the OS we should use
|
|
380 | 380 |
@type osparams: dict |
381 | 381 |
@param osparams: the parameters which we need to check |
382 | 382 |
@raise errors.OpPrereqError: if the parameters are not valid |
Also available in: Unified diff