Skip to content

Commit 7fe0341

Browse files
Yvonchchhsiao
authored andcommitted
DS-32726 detecting amazon linux 2
1 parent 6c7c2a7 commit 7fe0341

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

deep-security-agent/libraries/dsa.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def detect_DSA_host_platform
2222
case node[:platform]
2323
when /amazon/
2424
currentDSAPlatform.host_platform = 'amzn'
25-
currentDSAPlatform.host_platform_version = '1'
25+
currentDSAPlatform.host_platform_version = node[:platform_version] == '2' ? '2' : '1'
2626
currentDSAPlatform.installer_file_name = PACKAGE_RPM
2727
when /redhat/, /centos/
2828
currentDSAPlatform.host_platform = 'RedHat_EL'

deep-security-agent/metadata.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
license 'All rights reserved'
55
description 'Installs/Configures the Deep Security Agent'
66
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
7-
version '1.2.0'
7+
version '1.2.1'
88

99
supports 'amazon'
1010
supports 'centos'

0 commit comments

Comments
 (0)