553ab9 Fix: tools: properly detect local node name

1 file Authored by kgaillot 4 years ago, Committed by Packit Service 4 years ago,
    Fix: tools: properly detect local node name
    
    cibsecret had two serious problems when generating a list of other nodes to
    sync secrets to:
    
    * It used `uname -n` to remove the local node from the list. If the local node
      name is different from its uname, this could cause local secrets to be
      removed from the local node rather than synced to other nodes.
    
    * It removed not just the local node name, but any node name that contained
      the local node name as a substring (e.g. "node1" and "node10"). This could
      cause secrets to not be synced to such nodes.
    
    Now, use `crm_node -n` to determine the local node name, check crm_node for
    errors to get better error messages, and remove only the node name that matches
    the local node name in its entirety.
    
    patch_name: 015-cibsecret.patch
    present_in_specfile: true
    location_in_specfile: 15
    squash_commits: true
    
        
file modified
+7 -1