Skip to content

Commit

Permalink
Merge pull request #8266 from lfu/expose_account_1328905
Browse files Browse the repository at this point in the history
Expose Account to automate service model
  • Loading branch information
gmcculloug committed Apr 26, 2016
2 parents f9cc25e + 3e8dfa9 commit 79a3c7f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module MiqAeMethodService
class MiqAeServiceAccount < MiqAeServiceModelBase
expose :vm_or_template, :association => true
expose :host, :association => true
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ class MiqAeServiceVmOrTemplate < MiqAeServiceModelBase
expose :directories, :association => true
expose :refresh, :method => :refresh_ems
expose :tenant, :association => true
expose :accounts, :association => true
expose :users, :association => true
expose :groups, :association => true


METHODS_WITH_NO_ARGS = %w(start stop suspend unregister collect_running_processes shutdown_guest standby_guest reboot_guest)
METHODS_WITH_NO_ARGS.each do |m|
Expand Down

0 comments on commit 79a3c7f

Please sign in to comment.