Skip to content

fix: auto set vmid when creating host from Foreman API #304

fix: auto set vmid when creating host from Foreman API

fix: auto set vmid when creating host from Foreman API #304

Triggered via pull request February 20, 2024 14:18
Status Failure
Total duration 8m 11s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 3 warnings
build: ../foreman_fog_proxmox/test/unit/foreman_fog_proxmox/proxmox_vm_commands_server_create_test.rb#L469
Failure: test_0002_computes next vmid when vmid == 0 and creates server NameError: undefined local variable or method `node' for #<ForemanFogProxmox::Proxmox:0x0000558fc90e1970> Did you mean? nodes /home/runner/work/foreman_fog_proxmox/foreman_fog_proxmox/foreman_fog_proxmox/app/models/foreman_fog_proxmox/proxmox_vm_commands.rb:58:in `assign_vmid' /home/runner/work/foreman_fog_proxmox/foreman_fog_proxmox/foreman_fog_proxmox/app/models/foreman_fog_proxmox/proxmox_vm_commands.rb:35:in `create_vm' /home/runner/work/foreman_fog_proxmox/foreman_fog_proxmox/foreman_fog_proxmox/test/unit/foreman_fog_proxmox/proxmox_vm_commands_server_create_test.rb:55:in `block (2 levels) in <class:ProxmoxVmCommandsServerCreateTest>'
build
Process completed with exit code 1.
rubocop
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/