bgentry / go-netrc

netrc file parser for Go programming language.
http://code.google.com/p/go-netrc/
Other
26 stars 15 forks source link

Machine with no creds gets serialized w/ keywords anyway #3

Open bgentry opened 10 years ago

bgentry commented 10 years ago

Running UpdateLogin("") and UpdatePassword("") on an existing Machine and then running MarshalText() gives the following entry:

machine api.heroku.com
   login 
   password 
bgentry commented 10 years ago

Actually this is probably broken in that machines w/ no values for any of their tokens (login, password, account) will still get serialized as machine api.heroku.com with nothing else afterwards.