Index: state/state.go |
=== modified file 'state/state.go' |
--- state/state.go 2012-05-29 23:11:41 +0000 |
+++ state/state.go 2012-05-31 07:19:39 +0000 |
@@ -74,6 +74,11 @@ |
return newConfigWatcher(s, zkEnvironmentPath) |
} |
+// Environment returns the current configuration of the environment. |
+func (s *State) Environment() (*ConfigNode, error) { |
+ return readConfigNode(s.zk, zkEnvironmentPath) |
+} |
+ |
// Machine returns the machine with the given id. |
func (s *State) Machine(id int) (*Machine, error) { |
key := machineKey(id) |