shell: remove dead code

Change-Id: Ie2df882cb6e2c9f3dd193b3d080207ec8b309f36
This commit is contained in:
Julien Danjou 2015-09-30 15:18:11 +02:00
parent ad9c3388fd
commit 4df03094e4
1 changed files with 0 additions and 15 deletions

View File

@ -13,7 +13,6 @@
# License for the specific language governing permissions and limitations
# under the License.
import argparse
import logging
import os
import sys
@ -37,20 +36,6 @@ from gnocchiclient.version import __version__
LOG = logging.getLogger(__name__)
def _positive_non_zero_int(argument_value):
if argument_value is None:
return None
try:
value = int(argument_value)
except ValueError:
msg = "%s must be an integer" % argument_value
raise argparse.ArgumentTypeError(msg)
if value <= 0:
msg = "%s must be greater than 0" % argument_value
raise argparse.ArgumentTypeError(msg)
return value
class GnocchiCommandManager(commandmanager.CommandManager):
SHELL_COMMANDS = {
"resource list": resource_cli.CliResourceList,