Skip to content

Commit

Permalink
[config-engine]: Fix 'get_sonic_version_info' API to return valid info (
Browse files Browse the repository at this point in the history
#1517)

Signed-off-by: Volodymyr Samotiy <volodymyrs@mellanox.com>
  • Loading branch information
Volodymyr Samotiy authored and qiluo-msft committed Mar 20, 2018
1 parent 957e6c0 commit d142f3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sonic-config-engine/sonic_platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ def get_platform_info(machine_info):
return None

def get_sonic_version_info():
if not os.path.isfile('/etc/sonic/version.yml'):
if not os.path.isfile('/etc/sonic/sonic_version.yml'):
return None
data = {}
with open('/etc/sonic/version.yml') as stream:
with open('/etc/sonic/sonic_version.yml') as stream:
data = yaml.load(stream)
return data

Expand Down

0 comments on commit d142f3c

Please sign in to comment.