packcore: ignore warnings of the lsb_release command
The lsb_release output is included in the packcore tarball, but
sometimes the command may show an warning like below:
No LSB modules are available.
This warning message can be safely ignored, so do not show it to the
user.
@@ -18,7 +18,8 @@ def _getPlatformInfo():
for file in glob.glob('/etc/*release'):
shutil.copy(file, '.')
else:
- Popen('/usr/bin/lsb_release -a > ./lsb_release.out', shell=True)
+ Popen('/usr/bin/lsb_release -a > ./lsb_release.out',
+ shell=True, stderr=PIPE)
if os.path.exists('/etc/gpdb-appliance-version'):
shutil.copy('/etc/gpdb-appliance-version', '.')
