Commit 40a9c357 authored by Stavros Sachtouris's avatar Stavros Sachtouris
Browse files

Recover accidentaly removed usefull code line

parent 439926dd
......@@ -57,6 +57,7 @@ class Argument(object):
self.parsed_name = parsed_name
if default is not None:
self.default = default
self.arity = arity
@property
def parsed_name(self):
......@@ -195,7 +196,7 @@ class FlagArgument(Argument):
:value: true if set, false otherwise
"""
def __init__(self, help='', parsed_name=None, default=None):
def __init__(self, help='', parsed_name=None, default=False):
super(FlagArgument, self).__init__(0, help, parsed_name, default)
......
......@@ -39,7 +39,8 @@ import json
class ComputeClient(Client):
"""OpenStack Compute API 1.1 client"""
def raise_for_status(self, r):
"""
def _raise_for_status(self, r):
try:
d = r.json
key = d.keys()[0]
......@@ -52,6 +53,7 @@ class ComputeClient(Client):
details = '%s %s' %\
(unicode(r.request.method), unicode(r.request.url))
raise ClientError(message, r.status_code, details)
"""
def servers_get(self, server_id='', command='', **kwargs):
"""GET base_url/servers[/server_id][/command] request
......
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