Skip to content

Instantly share code, notes, and snippets.

@chalonga
Last active March 21, 2018 20:40
Show Gist options
  • Select an option

  • Save chalonga/cb722d2f153fe3f26a21fca6b0604d80 to your computer and use it in GitHub Desktop.

Select an option

Save chalonga/cb722d2f153fe3f26a21fca6b0604d80 to your computer and use it in GitHub Desktop.

Revisions

  1. chalonga revised this gist Mar 21, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion vault_conf.py
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,6 @@

    def vault_conf(vault_address, vault_token, path="/cubbyhole/app"):
    client = hvac.Client(url=vault_address, token=vault_token)
    return client.read(path)
    return client.read(path)['data']


  2. chalonga revised this gist Mar 21, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion vault_conf.py
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,6 @@

    def vault_conf(vault_address, vault_token, path="/cubbyhole/app"):
    client = hvac.Client(url=vault_address, token=vault_token)
    client.read(path)
    return client.read(path)


  3. chalonga created this gist Mar 21, 2018.
    7 changes: 7 additions & 0 deletions vault_conf.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    import hvac

    def vault_conf(vault_address, vault_token, path="/cubbyhole/app"):
    client = hvac.Client(url=vault_address, token=vault_token)
    client.read(path)