Skip to content

Commit 09d358a

Browse files
committed
Updated to use the credentials file
1 parent 2ed587d commit 09d358a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sbx-intermediate-aci/sbx-intermediate-aci-02_cobra/cobra_tenant.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import cobra.mit.request
77
import cobra.model.pol
88
import cobra.model.fv
9+
from credentials import *
910

1011
# use argparse to provide optional arguments and a help menu
1112
cli_args = argparse.ArgumentParser("Create Tenant", "Creates a Tenant in the specified ACI fabric.",
@@ -56,7 +57,7 @@ def main():
5657
"""
5758
# create a session and define the root
5859
requests.packages.urllib3.disable_warnings()
59-
auth = cobra.mit.session.LoginSession("https://sandboxapicdc.cisco.com","admin","ciscopsdt")
60+
auth = cobra.mit.session.LoginSession(URL, LOGIN, PASSWORD)
6061
session = cobra.mit.access.MoDirectory(auth)
6162
session.login()
6263

0 commit comments

Comments
 (0)