-
Notifications
You must be signed in to change notification settings - Fork 2
Issue with lstrip #2
Copy link
Copy link
Open
Description
Hey man great script. One thing I noticed on the point to point addressing script on line 32 is that the lstrip is setup to strip not just the string: "[connection:"
But it's actually doing "[,c,o,n,n,e,c,t,i,o,n,:"
So my host 'edge1' turned into 'dg1'
A fix for this is to use:
hostname = line.replace('[connection:', '')
I have this working in your script. So it would be good to implement.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels