Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

corrupted large config file #15

Open
tomdavidson opened this issue Mar 20, 2017 · 0 comments
Open

corrupted large config file #15

tomdavidson opened this issue Mar 20, 2017 · 0 comments

Comments

@tomdavidson
Copy link

Hello, I had a list of 36 profiles - added by hand - but there must have been a syntax issue:

$ assume-aws-role list                               
/home/tom/.nvm/versions/node/v7.2.0/lib/node_modules/assume-aws-role/bin/assume-aws-role.js:70                        
        var aliases = Object.keys(config);                                                                            
                             ^                                                                                        
                                                                                                                      
TypeError: Cannot convert undefined or null to object                                                                 
    at Function.keys (<anonymous>)                                                                                    
    at Object.<anonymous> (/home/tom/.nvm/versions/node/v7.2.0/lib/node_modules/assume-aws-role/bin/assume-aws-role.js:70:23)                                                                                                               
    at Module._compile (module.js:571:32)                                                                             
    at Object.Module._extensions..js (module.js:580:10)                                                               
    at Module.load (module.js:488:32)                                                                                 
    at tryModuleLoad (module.js:447:12)                                                                               
    at Function.Module._load (module.js:439:3)                                                                        
    at Module.runMain (module.js:605:10)                                                                              
    at run (bootstrap_node.js:420:7)                                                                                  
    at startup (bootstrap_node.js:139:9)                 

After which assume-aws-role wiped my file.

 cat ~/.assume-aws-role/config                           
Error: source does not appear to be markup.

If it is user error, why doesn't the config file have a json extension? Need a graceful exit that does not change the file if it can not be read.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant