- 
    
Change Request
 - 
    Resolution: Duplicate
 - 
    
Major
 - 
    None
 - 
    3.2.3
 - 
    Ubuntu 16
 
template.get with selectMacros = true returns an empty array even when there are macros assigned to the template.
Template 10329: 
[{u'available': u'0',
  u'description': u'',
  u'disable_until': u'0',
  u'error': u'',
  u'errors_from': u'0',
  u'flags': u'0',
  u'host': u'Template_Cassandra',
  u'ipmi_authtype': u'0',
  u'ipmi_available': u'0',
  u'ipmi_disable_until': u'0',
  u'ipmi_error': u'',
  u'ipmi_errors_from': u'0',
  u'ipmi_password': u'',
  u'ipmi_privilege': u'2',
  u'ipmi_username': u'',
  u'jmx_available': u'0',
  u'jmx_disable_until': u'0',
  u'jmx_error': u'',
  u'jmx_errors_from': u'0',
  u'lastaccess': u'0',
  u'macros': [],
  u'maintenance_from': u'0',
  u'maintenance_status': u'0',
  u'maintenance_type': u'0',
  u'maintenanceid': u'0',
  u'name': u'Template_Cassandra',
  u'proxy_hostid': u'0',
  u'snmp_available': u'0',
  u'snmp_disable_until': u'0',
  u'snmp_error': u'',
  u'snmp_errors_from': u'0',
  u'status': u'3',
  u'templateid': u'10329',
  u'tls_accept': u'1',
  u'tls_connect': u'1',
  u'tls_issuer': u'',
  u'tls_psk': u'',
  u'tls_psk_identity': u'',
  u'tls_subject': u''}]
usermacro.get with the templateid = 10329 also returns an empty array, though I'm unclear on whether this is expected from this function.
Screenshot attached of the template's macro definitions