code: def list_stack(profile=None):
      '''
      Return a list of available stack (heat stack-list)
  
      profile
          Profile to use
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' heat.list_stack profile=openstack1
      '''
      ret = {}
      h_client = _auth(profile)
      for stack in h_client.stacks.list():
          links = {}
          for link in stack.links:
              links[link['rel']] = link['href']
          ret[stack.stack_name] = {
              'status': stack.stack_status,
              'id': stack.id,
              'name': stack.stack_name,
              'creation': stack.creation_time,
              'owner': stack.stack_owner,
              'reason': stack.stack_status_reason,
              'links': links,
          }
      return ref list_stack(profile=None):
      '''
      Return a list of available stack (heat stack-list)
  
      profile
          Profile to use
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' heat.list_stack profile=openstack1
      '''
      ret = {}
      h_client = _auth(profile)
      for stack in h_client.stacks.list():
          links = {}
          for link in stack.links:
              links[link['rel']] = link['href']
          ret[stack.stack_name] = {
              'status': stack.stack_status,
              'id': stack.id,
              'name': stack.stack_name,
              'creation': stack.creation_time,
              'owner': stack.stack_owner,
              'reason': stack.stack_status_reason,
              'links': links,
          }
      return ret
docs: Return a list of available stack (heat stack-list)
  
      profile
          Profile to use
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' heat.list_stack profile=openstack1