def handle(self, dry_run, *args, **options): resources_counter = utils.import_openstack_instances_and_volumes( dry_run) self.stdout.write( self.style.SUCCESS('%s resources have been created.' % resources_counter))
def import_resource(self): utils.import_openstack_tenant_service_settings() utils.import_openstack_instances_and_volumes() return marketplace_models.Resource.objects.get(scope=self.instance)