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

Storage is now optional #8

Merged
merged 1 commit into from
Jun 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions src/quantum/azext_quantum/_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,3 @@ def validate_workspace_and_target_info(cmd, namespace):
"""
validate_workspace_info(cmd, namespace)
validate_target_info(cmd, namespace)

# For the time being (Private Preview), we also need the AZURE_QUANTUM_STORAGE env variable populated
# with the Azure Storage connection string to use to upload the program.
if 'AZURE_QUANTUM_STORAGE' not in os.environ:
raise ValueError(f"Please set the AZURE_QUANTUM_STORAGE environment variable with an Azure Storage's connection string.")
5 changes: 3 additions & 2 deletions src/quantum/azext_quantum/operations/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,9 @@ def _generate_submit_args(program_args, ws, target, token, project, job_name, sh
args.append("--output")
args.append("Id")

args.append("--storage")
args.append(os.environ['AZURE_QUANTUM_STORAGE'])
if 'AZURE_QUANTUM_STORAGE' in os.environ:
args.append("--storage")
args.append(os.environ['AZURE_QUANTUM_STORAGE'])

args.append("--aad-token")
args.append(token)
Expand Down