~pwlars/charms/precise/uci-engine-key-secret-subordinate/key-secret-lpkey

« back to all changes in this revision

Viewing changes to hooks/hooks.py

  • Committer: Paul Larson
  • Date: 2014-12-04 18:45:32 UTC
  • Revision ID: paul.larson@canonical.com-20141204184532-84qdh64t9gsi84la
use unhidden version of launchpad.credentials file

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
        _install_key(config['ssh-public-key'], keys_dir, 'id_rsa.pub')
65
65
        _install_key(config['ssh-private-key'], keys_dir, 'id_rsa')
66
66
        _install_key(config['launchpad-credentials'], keys_dir,
67
 
                     '.launchpad.credentials')
 
67
                     'launchpad.credentials')
68
68
    except IOError as exc:
69
69
        juju_info('Cannot install keys: {}'.format(exc))
70
70
        if os.path.exists(keys_dir):