Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
naveenrajm7 committed Jul 25, 2024
1 parent ba39acf commit 496ad3b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions lib/vagrant_utm/action/import_vm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ def import(env)
# Import the UTM VM file
driver.import(utm_file_url)

# Set the UID of Vagrant machine to the Name of the VM in UTM (same as name in Vagrantfile config)
# Set the UID of Vagrant machine to the UUID of the VM in UTM.
# UTM maintains UUID as primary key for VMs, but even the name works for all commands
# However, name is not unique.
# TODO: Decide if we want to use UTM 'UUID' or 'Name' for Vagrant machine ID

# For now we are using the 'Name' as the machine ID
# machine.id = name
# So we set the machine.id to UUID in next step after import.
# TODO: Set the machine.id to UUID after import returns the UUID.
# machine.id = return value of import

@app.call(env)
end
Expand Down
4 changes: 2 additions & 2 deletions lib/vagrant_utm/action/wait_for_running.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ def initialize(app, _env)
end

def call(env)
# set the wait time to use configures time or
# default to 10 seconds.
# set the wait time to user configured time or
# default time.
wait_time = env[:machine].provider_config.wait_time
env[:ui].info I18n.t("vagrant_utm.messages.waiting_for_vm", time: wait_time)
sleep(wait_time)
Expand Down

0 comments on commit 496ad3b

Please sign in to comment.