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

missing AutonomousDatabase class in oci/database.py #467

Closed
clayms opened this issue Feb 20, 2021 · 2 comments
Closed

missing AutonomousDatabase class in oci/database.py #467

clayms opened this issue Feb 20, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@clayms
Copy link

clayms commented Feb 20, 2021

ADB = AutonomousDatabase

should be Autonomous

class Autonomous(_Database):

AutonomousWhite will also have to be fixed.

ADBWhite = AutonomousDatabaseWhite

class AutonomousWhite(_Database):

NameError                                 Traceback (most recent call last)
~/test.py in ()
      581             if "__" not in str(x)])
      582     for grp in diag_res_grps:
----> 583         exec(f"import diagrams.{res}.{grp}")
      584         grp_nodes = [
      585             x[0] for x in eval(f"inspect.getmembers(diagrams.{res}.{grp}, inspect.isclass)")

~/test.py in ()

/home/user/miniconda/envs/test/lib/python3.6/site-packages/diagrams/oci/database.py in <module>()
     83 # Aliases
     84 
---> 85 ADB = AutonomousDatabase
     86 ADBWhite = AutonomousDatabaseWhite
     87 DBService = Databaseservice

NameError: name 'AutonomousDatabase' is not defined
@clayms
Copy link
Author

clayms commented Feb 20, 2021

also these:

DBService = Databaseservice

DBServiceWhite = DatabaseserviceWhite

@mingrammer
Copy link
Owner

It was fixed in v0.19.1. Thanks for reporting it :)

@mingrammer mingrammer added the bug Something isn't working label Feb 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants