LEFT | RIGHT |
(Both sides are equal) |
1 #!/usr/bin/env python2 | 1 #!/usr/bin/env python2 |
2 # -*- python -*- | 2 # -*- python -*- |
3 | 3 |
4 from subprocess import ( | 4 from subprocess import ( |
5 CalledProcessError, | 5 CalledProcessError, |
6 check_call, | 6 check_call, |
7 ) | 7 ) |
8 | 8 |
9 # python-shelltoolbox is installed as a dependency of python-charmhelpers. | 9 # python-shelltoolbox is installed as a dependency of python-charmhelpers. |
10 check_call(['apt-get', 'install', '-y', 'python-charmhelpers']) | 10 check_call(['apt-get', 'install', '-y', 'python-charmhelpers']) |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 if __name__ == '__main__': | 53 if __name__ == '__main__': |
54 log_entry() | 54 log_entry() |
55 try: | 55 try: |
56 main() | 56 main() |
57 except CalledProcessError as e: | 57 except CalledProcessError as e: |
58 log('Exception caught:') | 58 log('Exception caught:') |
59 log(e.output) | 59 log(e.output) |
60 raise | 60 raise |
61 finally: | 61 finally: |
62 log_exit() | 62 log_exit() |
LEFT | RIGHT |