Skip to content

Commit

Permalink
Make xml_tag required
Browse files Browse the repository at this point in the history
  • Loading branch information
cfournie authored and Seb Martin committed Apr 10, 2019
1 parent 6168299 commit ed27975
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyoozie/tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ class _AbstractWorkflowEntity(collections.Iterable):

def __init__(
self,
xml_tag=None, # type: typing.Optional[typing.Text]
xml_tag, # type: typing.Text
name=None, # type: typing.Optional[typing.Text]
on_error=None # type: typing.Optional[_AbstractWorkflowEntity]
):
Expand Down Expand Up @@ -701,11 +701,11 @@ class Serial(_AbstractWorkflowEntity):

def __init__(self, *entities, **kwargs):
# type: (*_AbstractWorkflowEntity, **_AbstractWorkflowEntity) -> None
super(Serial, self).__init__(on_error=kwargs.get(str('on_error')))
super(Serial, self).__init__(xml_tag='unknown', on_error=kwargs.get(str('on_error')))
self.__entities = tuple(copy.deepcopy(entities)) # type: typing.Tuple[_AbstractWorkflowEntity, ...]

def identifier(self): # type: () -> typing.Text
return self.__entities[0].identifier() if self.__entities else ''
return self.__entities[0].identifier()

def _xml(
self,
Expand Down

0 comments on commit ed27975

Please sign in to comment.