'Initialise a HeatIdentifier.
Identifier is initialized from a Tenant ID, Stack name, Stack ID
and optional path. If a path is supplied and it does not begin with
"/", a "/" will be prepended.'

def __init__(self, tenant, stack_name, stack_id, path=''):

    if (path and (not path.startswith('/'))):
        path = ('/' + path)
    if ('/' in stack_name):
        raise ValueError(_('Stack    name    may    not    contain    "/"'))
    self.identity = {self.TENANT: tenant, self.STACK_NAME: stack_name, self.STACK_ID: str(stack_id), self.PATH: path}
