1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
#!/usr/bin/python3 import actions from charmhelpers.core import hookenv def install(): """Only executed once, as we never do upgrade-charm but deploy a new unit/service""" hookenv.log('Installing result-enum-api') actions.basenode('result-enum-api') actions.install_packages('result-enum-api') if __name__ == "__main__": install() |