Reviewers: mp+157836_code.launchpad.net, Message: Please take a look. Description: Fix ServiceDeploy panic when called via the API. Fix the panic that happens when calling ServiceDeploy via the juju-core API. Add a global charm.CacheDir variable, in order to avoid the call to config.JujuHomePath inside the CharmStore.Get method. charm.CacheDir is originally empty, and is then set by the machineAgent.Run method. Pre-implementation call with Roger. https://code.launchpad.net/~frankban/juju-core/bug-1166224-service-deploy-panic/+merge/157836 (do not edit description out of merge proposal) Please review this at https://codereview.appspot.com/8566043/ Affected files: A [revision details] M charm/repo.go M charm/repo_test.go M cmd/jujud/machine.go M cmd/jujud/machine_test.go Index: [revision details] === added file '[revision details]' --- [revision details] 2012-01-01 00:00:00 +0000 +++ [revision details] 2012-01-01 00:00:00 +0000 @@ -0,0 +1,2 @@ +Old revision: