~andrewjbeach/juju-ci-tools/make-local-patcher

« back to all changes in this revision

Viewing changes to upgrade-juju

  • Committer: Aaron Bentley
  • Date: 2015-01-19 15:32:33 UTC
  • mto: This revision was merged to the branch mainline in revision 804.
  • Revision ID: aaron.bentley@canonical.com-20150119153233-jjcvikwiw1dx2lak
Print error on missing environment.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
from __future__ import print_function
 
3
 
 
4
__metaclass__ = type
 
5
 
 
6
import sys
 
7
 
 
8
from deploy_stack import upgrade_juju
 
9
import jujupy
 
10
 
 
11
def main():
 
12
    for env in sys.argv[1:]:
 
13
        environment = jujupy.Environment.from_config(env)
 
14
        upgrade_juju(environment)
 
15
 
 
16
if __name__ == '__main__':
 
17
    main()