Skip to content

Commit

Permalink
Log the instance create request content
Browse files Browse the repository at this point in the history
  • Loading branch information
praiskup committed Jan 10, 2025
1 parent 078986a commit 2737da5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions resalloc_ibm_cloud/ibm_cloud_vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"""


import json
import logging
import os
import random
Expand Down Expand Up @@ -180,6 +181,10 @@ def create_instance(service, instance_name, opts):
ip_address = None
instance_created = None
opts.allocated_floating_ip_id = None

log.info("Create instance request:\n%s",
json.dumps(instance_prototype_model, indent=4))

try:
response = service.create_instance(instance_prototype_model)
instance_created = instance_name
Expand Down

0 comments on commit 2737da5

Please sign in to comment.