Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow IBMServerlessProvider users to save/load their credentials to/f…
…rom disk (#1048) * Allow for account to be saved/loaded. Not working but first pass at code complete. * Fix bug causing credential file to be overwritten. Code works now. * Allow IBMServerlessProvider to be instantiated by name * Add default name arg to Provider * Move the filepath and default account name to class variables in IBMServerlessProvider * pylint * Missing if statement. Bug. * Use os.environ.get so that None is returned if varname does not exist. Minor bug. * Use the class variables, rather than instance vars in constructor. * Use dict.get so script doesnt crash if config does not contain token keyword * Minor code style cleanup * peer review * cleanup * Update IBMServerlessprovider init docstring * classmethod-->staticmethod, no longer need class vars
- Loading branch information