'Return id of container if it is valid'

@property
def container_id(self):

    if self.container_name:
        return self.container_name
    elif self.container:
        return self.container.get('Id')
