Skip to content

Commit 0935868

Browse files
authored
chore(updatecli) hotfix on Ip tracking
1 parent 3266716 commit 0935868

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

updatecli/updatecli.d/restricted-ips.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ sources:
5454
dependson:
5555
- aws-ci-jenkins-io-agents-2-hostname
5656
spec:
57-
command: dig +short {{ source "aws-ci-jenkins-io-agents-2-hostname" }} | head -n1
57+
command: dig +short {{ source "aws-ci-jenkins-io-agents-2-hostname" }} | sort `# sorting is required as dig result is unordered` | head -n1
5858
transformers:
5959
- addsuffix: '/32'
6060
aws-ci-jenkins-io-agents-2-ip-2:
6161
kind: shell
6262
dependson:
6363
- aws-ci-jenkins-io-agents-2-hostname
6464
spec:
65-
command: dig +short {{ source "aws-ci-jenkins-io-agents-2-hostname" }} | tail -n1
65+
command: dig +short {{ source "aws-ci-jenkins-io-agents-2-hostname" }} | sort `# sorting is required as dig result is unordered` | tail -n1
6666
transformers:
6767
- addsuffix: '/32'
6868
aws-ci-jenkins-io-agents-2-netmask-1:

0 commit comments

Comments
 (0)