Skip to content

Commit

Permalink
Make group-name, target functions work for groups
Browse files Browse the repository at this point in the history
Ensure these session functions work for the group addition and removal
phases.
  • Loading branch information
hugoduncan committed Aug 12, 2015
1 parent 011466a commit 77886e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pallet/core/session.clj
Expand Up @@ -69,7 +69,7 @@
(defn target
"Target server."
[session]
(-> session :server))
(or (:server session) (:group session)))

(defn target-node
"Target compute service node."
Expand Down Expand Up @@ -122,7 +122,7 @@
(defn group-name
"Group name of the target-node."
[session]
(-> session :server :group-name))
(:group-name (target session)))

(comment
(defn safe-name
Expand Down

0 comments on commit 77886e5

Please sign in to comment.