Merge "Remove an unused method in novaclient/shell.py"

This commit is contained in:
Jenkins 2016-03-07 18:30:27 +00:00 committed by Gerrit Code Review
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