Browse Source

Merge "Added missing {user, project}_domain_name in Api"

tags/0.46.0
Zuul 3 months ago
committed by Gerrit Code Review
parent
commit
ff05ad5347
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      examples/connect.py

+ 5
- 3
examples/connect.py View File

@@ -19,10 +19,10 @@ https://docs.openstack.org/openstacksdk/latest/user/guides/connect_from_config.h

import argparse
import os
import sys

import openstack
from openstack.config import loader
import sys

openstack.enable_logging(True, stream=sys.stdout)

@@ -72,14 +72,16 @@ def create_connection_from_args():
return openstack.connect(options=parser)


def create_connection(auth_url, region, project_name, username, password):
def create_connection(auth_url, region, project_name, username, password,
user_domain, project_domain):
return openstack.connect(
auth_url=auth_url,
project_name=project_name,
username=username,
password=password,
region_name=region,
user_domain_name=user_domain,
project_domain_name=project_domain,
app_name='examples',
app_version='1.0',
)

Loading…
Cancel
Save