func (a *fakeUpgradeJujuAPI) ModelGet() (map[string]interface{}, error) { config, err := a.st.ModelConfig() if err != nil { return make(map[string]interface{}), err } return config.AllAttrs(), nil }
// EnvironmentGet implements the server-side part of the // get-environment CLI command. func (c *Client) EnvironmentGet() (params.EnvironmentConfigResults, error) { result := params.EnvironmentConfigResults{} // Get the existing environment config from the state. config, err := c.api.state.EnvironConfig() if err != nil { return result, err } result.Config = config.AllAttrs() return result, nil }