Skip to content

Noisier failures with ssh-group #137

@tomconnors

Description

@tomconnors

The docs indicate that if one server in ssh-group has a failure, the others will continue. I think that should be configurable (I'd like the whole thing to crash in that case), but it should at least log a warning. The following code just logs "I'm on the server" then :ok

(ns test
  (:require
   [spire.modules :as spire]
   [clojure.string :as string]))

(defn main []
  (spire/ssh-group
   [{:hostname "10.10.3.250" :username "ubuntu"}]
   (spire/debug "I'm on the server")
   (spire/debug (string/trim nil))
   (spire/debug "All done"))
  :ok)

(main)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions