New to Python and I can't get this very simple script to run. Any help is appreciated, I'm guessing I don't know how to pass a variable correctly.
record.update(data='127.0.0.1', ttl=600) - works
If I try to use a variable in data= I always get an error.
#uses pycurl to grab IP, assume newip variable is valid IPv4
newip = buf.getvalue()
record.update(data=newip, ttl=600) - does not work
record.update(data='newip', ttl=600) - does not work
Tried many variations of data=new and nothing works.
record.update(data='127.0.0.1', ttl=600) - works
If I try to use a variable in data= I always get an error.
#uses pycurl to grab IP, assume newip variable is valid IPv4
newip = buf.getvalue()
record.update(data=newip, ttl=600) - does not work
record.update(data='newip', ttl=600) - does not work
Tried many variations of data=new and nothing works.