lib/hyperkit/client/containers.rb in hyperkit-1.2.0 vs lib/hyperkit/client/containers.rb in hyperkit-1.3.0
- old
+ new
@@ -6,11 +6,11 @@
class Client
# Methods for the containers API
#
# @see Hyperkit::Client
- # @see https://github.com/lxc/lxd/blob/master/specs/rest-api.md
+ # @see https://github.com/lxc/lxd/blob/master/doc/rest-api.md
module Containers
# @!group Retrieval
# List of containers on the server (public or private)
@@ -1029,10 +1029,10 @@
def containers_path
"/1.0/containers"
end
def extract_container_options(name, options)
- opts = options.slice(:architecture, :profiles, :ephemeral, :config).
+ opts = options.slice(:architecture, :profiles, :ephemeral, :config, :devices).
merge({ name: name })
opts[:config] = stringify_hash(opts[:config]) if opts[:config]
opts