mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
Strip and stringify the return for the osarch
This commit is contained in:
parent
a2483714f7
commit
70d3de0218
@ -9,6 +9,7 @@ import collections
|
||||
import datetime
|
||||
import logging
|
||||
import subprocess
|
||||
from salt.utils.stringutils import to_str
|
||||
|
||||
# Import 3rd-party libs
|
||||
from salt.ext import six
|
||||
@ -47,7 +48,7 @@ def get_osarch():
|
||||
close_fds=True,
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE).communicate()[0]
|
||||
return ret or 'unknown'
|
||||
return to_str(ret).strip() or 'unknown'
|
||||
|
||||
|
||||
def check_32(arch, osarch=None):
|
||||
|
Loading…
Reference in New Issue
Block a user