Skip to content

Commit

Permalink
Removed trailing / for AWS 169.254.169.254 IPs
Browse files Browse the repository at this point in the history
  • Loading branch information
derpadoo committed Jan 30, 2019
1 parent c17dcf0 commit 3552065
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions modules/aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ def __init__(self, requester, args):


def add_endpoints(self):
self.endpoints.add( ("169.254.169.254/","latest/user-data") )
self.endpoints.add( ("169.254.169.254/","latest/meta-data/ami-id") )
self.endpoints.add( ("169.254.169.254/","latest/meta-data/reservation-id") )
self.endpoints.add( ("169.254.169.254/","latest/meta-data/hostname") )
self.endpoints.add( ("169.254.169.254/","latest/meta-data/public-keys/0/openssh-key") )
self.endpoints.add( ("169.254.169.254/","latest/meta-data/public-keys/1/openssh-key") )
self.endpoints.add( ("169.254.169.254/","latest/meta-data/public-keys/2/openssh-key") )
self.endpoints.add( ("169.254.169.254/","latest/meta-data/iam/security-credentials/dummy") )
self.endpoints.add( ("169.254.169.254/","latest/meta-data/iam/security-credentials/ecsInstanceRole") )
self.endpoints.add( ("169.254.169.254/","latest/meta-data/iam/security-credentials/") )
self.endpoints.add( ("169.254.169.254/","latest/meta-data/public-keys/") )
self.endpoints.add( ("169.254.169.254/","latest/user-data/") )
self.endpoints.add( ("169.254.169.254","latest/user-data") )
self.endpoints.add( ("169.254.169.254","latest/meta-data/ami-id") )
self.endpoints.add( ("169.254.169.254","latest/meta-data/reservation-id") )
self.endpoints.add( ("169.254.169.254","latest/meta-data/hostname") )
self.endpoints.add( ("169.254.169.254","latest/meta-data/public-keys/0/openssh-key") )
self.endpoints.add( ("169.254.169.254","latest/meta-data/public-keys/1/openssh-key") )
self.endpoints.add( ("169.254.169.254","latest/meta-data/public-keys/2/openssh-key") )
self.endpoints.add( ("169.254.169.254","latest/meta-data/iam/security-credentials/dummy") )
self.endpoints.add( ("169.254.169.254","latest/meta-data/iam/security-credentials/ecsInstanceRole") )
self.endpoints.add( ("169.254.169.254","latest/meta-data/iam/security-credentials/") )
self.endpoints.add( ("169.254.169.254","latest/meta-data/public-keys/") )
self.endpoints.add( ("169.254.169.254","latest/user-data/") )

0 comments on commit 3552065

Please sign in to comment.