Get gid and uid methods are now members of HeatBaseLauncher
The class HeatBaseLauncher uses both methods during __init__. But doesn't actually define them. This would cause an error (either NameError or AttributeError) during instantiation. Signed-off-by: Jiri Podivin <jpodivin@redhat.com> Change-Id: I55be5d3a3c24171fc7912e063f67fe2919590292
This commit is contained in:
parent
c6f22c1f3c
commit
3e0539742d
|
@ -244,6 +244,12 @@ heat.filter_factory = heat.api.openstack:version_negotiation_filter
|
|||
with open(config_file, 'w') as temp_file:
|
||||
temp_file.write(ks_token)
|
||||
|
||||
def get_heat_uid(self):
|
||||
return pwd.getpwnam(self.user).pw_uid
|
||||
|
||||
def get_heat_gid(self):
|
||||
return grp.getgrnam(self.user).gr_gid
|
||||
|
||||
|
||||
class HeatContainerLauncher(HeatBaseLauncher):
|
||||
|
||||
|
@ -347,11 +353,5 @@ class HeatNativeLauncher(HeatBaseLauncher):
|
|||
subprocess.check_call(['heat-manage', '--config-file',
|
||||
self.config_file, 'db_sync'])
|
||||
|
||||
def get_heat_uid(self):
|
||||
return pwd.getpwnam(self.user).pw_uid
|
||||
|
||||
def get_heat_gid(self):
|
||||
return grp.getgrnam(self.user).gr_gid
|
||||
|
||||
def kill_heat(self, pid):
|
||||
os.kill(pid, signal.SIGKILL)
|
||||
|
|
Loading…
Reference in New Issue