Skip to content

Commit

Permalink
SMLITE: use hostname of sm instead of ip for third party repo
Browse files Browse the repository at this point in the history
Change-Id: Iaf6a6fd9543737d8138e641b0f0cd3fa572ede88
Closes-Bug: 1534287
  • Loading branch information
npchandran committed Jan 14, 2016
1 parent f4eb180 commit f9647aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/preconfig.py
Expand Up @@ -251,8 +251,8 @@ def preconfig_unauthenticated_packages(self):
self.exec_cmd('echo %s >> /etc/apt/apt.conf' % apt_auth, error_on_fail=True)

def preconfig_repos(self):
repo_entry = r'deb http://%s:%s/thirdparty_packages/ ./' % (self.server_manager_ip, self.server_manager_repo_port)
repo_entry_verify = r'%s.*\/thirdparty_packages' % self.server_manager_ip
repo_entry = r'deb http://%s:%s/thirdparty_packages/ ./' % ('puppet', self.server_manager_repo_port)
repo_entry_verify = r'%s.*\/thirdparty_packages' % 'puppet'
status, output = self.exec_cmd('apt-cache policy | grep "%s"' % repo_entry_verify)
if status:
log.info('/etc/apt/sources.list has no thirdparty_packages '
Expand Down

0 comments on commit f9647aa

Please sign in to comment.