Skip to content

Commit

Permalink
fix(matchexpr): expose 'isAgent' field for evaluation (#598)
Browse files Browse the repository at this point in the history
(cherry picked from commit f319134)
  • Loading branch information
andrewazores authored and mergify[bot] committed Aug 9, 2024
1 parent 1fe0d25 commit b691e0a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ public static class ScriptCreation extends Event {}
* expression-relevant fields exposed, connection URI exposed as a String, etc.
*/
private static record SimplifiedTarget(
boolean isAgent,
String connectUrl,
String alias,
@Nullable String jvmId,
Expand All @@ -241,6 +242,7 @@ private static record SimplifiedTarget(

static SimplifiedTarget from(Target target) {
return new SimplifiedTarget(
target.isAgent(),
target.connectUrl.toString(),
target.alias,
target.jvmId,
Expand Down

0 comments on commit b691e0a

Please sign in to comment.