return of Template.getObjects either ARRAY or HASH reference

XMLWordPrintable

    • Type: Incident report
    • Resolution: Cannot Reproduce
    • Priority: Major
    • None
    • Affects Version/s: 1.9.0 (alpha)
    • Component/s: API (A)
    • Environment:
      svn Revision: 10947 (gui only)

      when calling Template.getObjects and the object queried does not exist i get an empty array in the json result, if the object exists i get a hash.

      Template.getObjects:
      >{"auth":"0d3fb2426c079cd8235414fd203642c3","params":

      {"name":"Template_auto_test1"}

      ,"jsonrpc":"2.0","id":1,"method":"Template.getObjects"}
      <

      {"jsonrpc":"2.0","result":[],"id":1}

      ARRAY(0x925b940)

      Template.create:
      >{"auth":"0d3fb2426c079cd8235414fd203642c3","params":

      {"groups":1,"host":"Template_auto_test1"}

      ,"jsonrpc":"2.0","id":1,"method":"Template.create"}
      <{"jsonrpc":"2.0","result":

      {"templateids":["10202"]}

      ,"id":1}
      HASH(0x925b630)

            Assignee:
            Unassigned
            Reporter:
            svenw
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: