Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Merge "undercloud deploy, delete heat containers"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Mar 15, 2017
2 parents 9e670a1 + 2d6218d commit 62153e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tripleoclient/heat_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def launch_heat(self):
def heat_db_sync(self):

subprocess.check_call([
'docker', 'run',
'docker', 'run', '--rm',
'--user', self.user,
'--volume', '%(conf)s:/etc/heat/heat.conf' % {'conf':
self.config_file},
Expand All @@ -132,15 +132,15 @@ def heat_db_sync(self):

def get_heat_uid(self):
p = subprocess.Popen([
'docker', 'run',
'docker', 'run', '--rm',
self.container_image,
'getent', 'passwd', '|', 'grep', self.user],
stdout=subprocess.PIPE)
return p.communicate()[0].rstrip().split(':')[2]

def get_heat_gid(self):
p = subprocess.Popen([
'docker', 'run',
'docker', 'run', '--rm',
self.container_image,
'getent', 'group', '|', 'grep', self.user],
stdout=subprocess.PIPE)
Expand Down

0 comments on commit 62153e7

Please sign in to comment.