Skip to content
Snippets Groups Projects
  • Iustin Pop's avatar
    Make gnt-node list -o(p|s)inst_list output stable · c81b97f2
    Iustin Pop authored
    
    Currently, both the Python and Haskell code return the internal
    instance list unsorted, which means the output can vary depending on
    the phase of the moon (well, the Haskell code actually uses internally
    a tree, sorted by the instance name, but it's implementation detail).
    
    By adding an explicit sort step, we guarantee both stability of the
    output and consistency between the two query paths.
    
    Signed-off-by: default avatarIustin Pop <iustin@google.com>
    Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
    c81b97f2