From c67a4f55f77c7d432bfc6e8251af99ca74afa3d2 Mon Sep 17 00:00:00 2001 From: wilsonwr Date: Thu, 30 Jul 2020 11:36:12 -0600 Subject: [PATCH] Fix: only_platform circular argument reference (#1160) Remove a circular argument reference of only_platform, which was causing scripts in ./bin/ to error out when using Ruby version 2.7. --- atomic_red_team/atomic_red_team.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atomic_red_team/atomic_red_team.rb b/atomic_red_team/atomic_red_team.rb index 1b68172c..46a1266c 100755 --- a/atomic_red_team/atomic_red_team.rb +++ b/atomic_red_team/atomic_red_team.rb @@ -49,7 +49,7 @@ class AtomicRedTeam # techniques that already have one or more Atomic Red Team tests, or the create page for # techniques that have no existing tests for the given OS. # - def github_link_to_technique(technique, include_identifier: false, only_platform: only_platform) + def github_link_to_technique(technique, include_identifier: false, only_platform: self.only_platform) technique_identifier = ATTACK_API.technique_identifier_for_technique(technique).upcase link_display = "#{"#{technique_identifier.upcase} " if include_identifier}#{technique['name']}" yaml_file = "#{ATOMICS_DIRECTORY}/#{technique_identifier}/#{technique_identifier}.yaml"