Skip to content

Commit

Permalink
Fix lint on service.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoTavares committed May 13, 2024
1 parent 8df6cde commit 861d4b8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pycue/opencue/wrappers/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,14 +264,17 @@ class ServiceOverride(object):
"""Represents a display override of a service assigned to a show"""
def __init__(self, serviceOverride=None):
defaultServiceOverride = service_pb2.ServiceOverride()
# pylint: disable=no-member
self.id = defaultServiceOverride.id
self.data = defaultServiceOverride.data
self.data = defaultServiceOverride.data
if serviceOverride:
self.id = serviceOverride.id
self.data = serviceOverride.data or service_pb2.Service().data
self.data = serviceOverride.data or service_pb2.Service().data
self.stub = Cuebot.getStub("serviceOverride")
# pylint: enable=no-member

def delete(self):
"""Remove service override"""
self.stub.Delete(
service_pb2.ServiceOverrideDeleteRequest(service=self.data),
timeout=Cuebot.Timeout)
Expand Down

0 comments on commit 861d4b8

Please sign in to comment.