~andybavier/charms/trusty/nova-cloud-controller/trunk

« back to all changes in this revision

Viewing changes to hooks/nova_cc_hooks.py

  • Committer: Andy Bavier
  • Date: 2015-03-20 21:32:22 UTC
  • Revision ID: andybavier@gmail.com-20150320213222-0o558gss01u8h6zt
Fix debfiles install

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
    # Should move to a PPA
102
102
    _debfiles = os.path.join(charm_dir(), 'debfiles')
103
103
    if os.path.isdir(_debfiles):
104
 
        for f in os.listdir(_files):
105
 
            fpath = os.path.join(_files, f)
106
 
            log('Installing package: %s to /usr/bin' % f)
 
104
        for f in os.listdir(_debfiles):
 
105
            fpath = os.path.join(_debfiles, f)
 
106
            log('Installing package: %s' % f)
107
107
            pkg = DebPackage(fpath)
108
108
            pkg.install()
109
109