Skip to content

Commit

Permalink
#1906 no register if ec2
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Feb 28, 2024
1 parent 9741b9f commit 2e69697
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/com/rultor/agents/shells/RegistersShell.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ public final class RegistersShell extends AbstractAgent {
public RegistersShell(final Profile profile, final String host,
final int port, final String user, final String key)
throws UnknownHostException {
super("/talk[daemon and not(shell)]");
super(
"/talk[daemon and not(shell)]",
"/talk[not(ec2/instance)]"
);
if (user.isEmpty()) {
throw new IllegalArgumentException(
"User name is mandatory"
Expand Down

0 comments on commit 2e69697

Please sign in to comment.