1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-10-03 17:50:11 +02:00

allow using remote boxes from vagrant cloud

This commit is contained in:
Michael Pöhn 2018-09-13 11:08:51 +02:00
parent 98806d7c01
commit 6d0797eb5e

View File

@ -540,7 +540,7 @@ def main():
sys.exit(1) sys.exit(1)
# Check if selected basebox is available # Check if selected basebox is available
available_boxes_by_provider = [x.name for x in v.box_list() if x.provider == config['vm_provider']] available_boxes_by_provider = [x.name for x in v.box_list() if x.provider == config['vm_provider']]
if config['basebox'] not in available_boxes_by_provider: if '/' not in config['basebox'] and config['basebox'] not in available_boxes_by_provider:
logger.critical("Vagrant box '{basebox}' not available " logger.critical("Vagrant box '{basebox}' not available "
"for '{vm_provider}' VM provider. " "for '{vm_provider}' VM provider. "
"Please make sure it's added to vagrant. " "Please make sure it's added to vagrant. "