Skip to content

Issue with lstrip #2

@theotherguy2175

Description

@theotherguy2175

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions