Merge "Remove an unused method in novaclient/shell.py"
This commit is contained in:
commit
df80402fa7
@ -210,20 +210,6 @@ class DeprecatedAction(argparse.Action):
|
||||
action(parser, namespace, values, option_string)
|
||||
|
||||
|
||||
def positive_non_zero_float(text):
|
||||
if text is None:
|
||||
return None
|
||||
try:
|
||||
value = float(text)
|
||||
except ValueError:
|
||||
msg = _("%s must be a float") % text
|
||||
raise argparse.ArgumentTypeError(msg)
|
||||
if value <= 0:
|
||||
msg = _("%s must be greater than 0") % text
|
||||
raise argparse.ArgumentTypeError(msg)
|
||||
return value
|
||||
|
||||
|
||||
class SecretsHelper(object):
|
||||
def __init__(self, args, client):
|
||||
self.args = args
|
||||
|
Loading…
x
Reference in New Issue
Block a user