Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.






Code Block
titlecql confluence
def get_credential():
   import yaml
   credentialfilename = r'../credential.yaml'
   diccredential = yaml.load(open(credentialfilename))
   urlbase = diccredential['urlbase']
   auth = HTTPBasicAuth(diccredential['username'], diccredential['key'])
   #credentialfilename.close()
   return (urlbase,auth)