~verterok/charms/trusty/apache2/hostname-resolution-fix

« back to all changes in this revision

Viewing changes to hooks/hooks.py

  • Committer: Guillermo Gonzalez
  • Date: 2015-09-23 13:57:41 UTC
  • Revision ID: guillermo.gonzalez@canonical.com-20150923135741-65dgrig0yte8y69w
add reference to etc_update_hosts code

Show diffs side-by-side

added added

removed removed

Lines of Context:
110
110
 
111
111
def update_hosts_file(hosts_map):
112
112
    """When using mod_unique_id apache needs own hostname resolution to work properly"""
 
113
    # Code from neutron-gateway charm #
113
114
    with open(HOSTS_FILE, 'r') as hosts:
114
115
        lines = hosts.readlines()
115
116