Skip to content

Commit

Permalink
Logging: use alias variable because lint complains about line continu…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
chemelnucfin committed Dec 20, 2017
1 parent e75ee55 commit 9063794
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions logging/google/cloud/logging/_gax.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,12 +222,12 @@ def sink_create(self, project, sink_name, filter_, destination,
parent = 'projects/%s' % (project,)
sink_pb = LogSink(name=sink_name, filter=filter_,
destination=destination)
uwi = unique_writer_identity
try:
self._gax_api.create_sink(parent,
sink_pb,
unique_writer_identity=unique_writer_identity,
options=options,
)
sink_pb,
unique_writer_identity=uwi,
options=options)
except GaxError as exc:
if exc_to_code(exc.cause) == StatusCode.FAILED_PRECONDITION:
path = 'projects/%s/sinks/%s' % (project, sink_name)
Expand Down

0 comments on commit 9063794

Please sign in to comment.