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

Add Outscale Provider #251

Merged
merged 1 commit into from
Aug 21, 2020
Merged

Add Outscale Provider #251

merged 1 commit into from
Aug 21, 2020

Conversation

outscale-mgo
Copy link
Contributor

@outscale-mgo outscale-mgo commented Aug 17, 2020

Hello

Outscale is a French IaaS provider.

This Pull Request add support for Outscale Provider.

Thanks,
Matthias Gatto

@@ -108,6 +108,9 @@ def cleaner_saas(f):
def cleaner_elastic(f):
return f.lower()

def cleaner_outscale(f):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please keep 2 lines of space between functions.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That should be done,

Thanks for the review

config.py Outdated
@@ -66,6 +67,8 @@
"oci": ("oci", "ocid", "oke", "ocir", "ddos", "waf", "bm", "vm", "cdn", "vpn", "dns", "nat", "dms", "api", "id"),
"elastic": ("apm", "siem", "ece", "eck"),
"generic": ("vpn", "ios", "xen", "sql"),
"outscale": ("osc",),
"generic": ("vpn", "ios", "xen"),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

generic key is duplicated, remove it plz.

autogen.sh Outdated
@@ -31,25 +31,25 @@ for pvd in "${providers[@]}"; do
# convert the svg to png for azure provider
if [ "$pvd" = "onprem" ] || [ "$pvd" = "azure" ]; then
echo "converting the svg to png using inkscape for provider '$pvd'"
python -m scripts.resource svg2png "$pvd"
python3 -m scripts.resource svg2png "$pvd"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Diagrams uses Python3 as the default interpreter, Python3 is standard, and Python2 is deprecated. So, since we can assume that python is for version 3, it doesn't seem necessary to specify python3 I think.

Also, diagrams is using poetry as a package manager and virtual environment manager. We have already specified to use Python3 as default version: https://github.com/mingrammer/diagrams/blob/master/pyproject.toml#L13

@mingrammer mingrammer added kind/feat/provider Provider request status/need-to-review Need to review labels Aug 19, 2020
Outscale isa French IaaS provider

This commit add support for generated diagram with outscale images

Signed-off-by: Matthias Gatto <[email protected]>
Copy link
Owner

@mingrammer mingrammer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you.

@mingrammer mingrammer merged commit d99352f into mingrammer:master Aug 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feat/provider Provider request status/need-to-review Need to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants