Ubuntu Pastebin

Paste from Nate Finch at Mon, 1 Jun 2015 16:14:38 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
class EnvJujuClient24(EnvJujuClient):

    def _shell_environ(self, juju_home=None):
        """Generate a suitable shell environment.

        Juju's directory must be in the PATH to support plugins.
        """
        env = super(EnvJujuClient24, self)._shell_environ(juju_home)
        if env.get(JUJU_DEV_FEATURE_FLAGS) == "":
            env[JUJU_DEV_FEATURE_FLAGS] = 'actions'
        else:
            env[JUJU_DEV_FEATURE_FLAGS] += ',actions'

        if self.env.config.get('type') == 'cloudsigma':
            env[JUJU_DEV_FEATURE_FLAGS] += ',cloudsigma'
        return env
Download as text