delete redundant parenthese and variable name
Change-Id: Ide4dbedf8367dfeecee2a95e9faed79b983f1e13
This commit is contained in:
parent
8ac3d6b044
commit
e1a6f3ef0e
@ -1001,7 +1001,7 @@ class Resource(wsgi.Application):
|
|||||||
|
|
||||||
project_id = action_args.pop("project_id", None)
|
project_id = action_args.pop("project_id", None)
|
||||||
context = request.environ.get('venus.context')
|
context = request.environ.get('venus.context')
|
||||||
if (context and project_id and (project_id != context.project_id)):
|
if context and project_id and (project_id != context.project_id):
|
||||||
msg = _("Malformed request url")
|
msg = _("Malformed request url")
|
||||||
return Fault(webob.exc.HTTPBadRequest(explanation=msg))
|
return Fault(webob.exc.HTTPBadRequest(explanation=msg))
|
||||||
|
|
||||||
|
@ -224,7 +224,6 @@ class GetLogCommands(object):
|
|||||||
"""Get <num_entries> of the venus syslog events."""
|
"""Get <num_entries> of the venus syslog events."""
|
||||||
entries = int(num_entries)
|
entries = int(num_entries)
|
||||||
count = 0
|
count = 0
|
||||||
log_file = ''
|
|
||||||
if os.path.exists('/var/log/syslog'):
|
if os.path.exists('/var/log/syslog'):
|
||||||
log_file = '/var/log/syslog'
|
log_file = '/var/log/syslog'
|
||||||
elif os.path.exists('/var/log/messages'):
|
elif os.path.exists('/var/log/messages'):
|
||||||
@ -305,7 +304,6 @@ category_opt = cfg.SubCommandOpt('category',
|
|||||||
|
|
||||||
|
|
||||||
def get_arg_string(args):
|
def get_arg_string(args):
|
||||||
arg = None
|
|
||||||
if args[0] == '-':
|
if args[0] == '-':
|
||||||
# (Note)zhiteng: args starts with FLAGS.oparser.prefix_chars
|
# (Note)zhiteng: args starts with FLAGS.oparser.prefix_chars
|
||||||
# is optional args. Notice that cfg module takes care of
|
# is optional args. Notice that cfg module takes care of
|
||||||
|
Loading…
x
Reference in New Issue
Block a user