Skip to content

Commit

Permalink
chore(bedrock): small improvemments
Browse files Browse the repository at this point in the history
  • Loading branch information
andypf committed Nov 15, 2024
1 parent c780d4e commit 3bab106
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion plugins/identity/app/views/identity/projects/edit.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@

%div{class: modal? ? 'modal-footer' : ''}
%button.btn.btn-default{type:"button", data: {dismiss:"modal"}, aria: {label: "Cancel"}} Cancel
= f.submit 'Update', class: 'btn btn-primary', data: { disable_with: "Please wait..." }
= f.submit 'Update', class: 'btn btn-primary', data: { disable_with: "Please wait..." }

2 changes: 1 addition & 1 deletion plugins/networking/app/models/networking/subnet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def cidr_must_be_in_reserved_range
unless cidr.match(
%r{^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(/(3[0-2]|[1-2][0-9]|[0-9]))$}
)
errors.add(:cidr, 'must be a valid cidr adress like 10.180.1.0/16')
errors.add(:cidr, 'Must be within a valid CIDR range starting with 10.180 (e.g., 10.180.0.0/16)')
return
end

Expand Down

0 comments on commit 3bab106

Please sign in to comment.