Merge branch 'payload_defaults'
commit
d358fe5f94
|
@ -139,8 +139,10 @@ protected
|
||||||
|
|
||||||
# Prefer the target's platform/architecture information, but use
|
# Prefer the target's platform/architecture information, but use
|
||||||
# the module's if no target specific information exists
|
# the module's if no target specific information exists
|
||||||
|
opts[:platform] ||= payload_instance.platform if self.respond_to? :payload_instance
|
||||||
opts[:platform] ||= target_platform if self.respond_to? :target_platform
|
opts[:platform] ||= target_platform if self.respond_to? :target_platform
|
||||||
opts[:platform] ||= platform if self.respond_to? :platform
|
opts[:platform] ||= platform if self.respond_to? :platform
|
||||||
|
opts[:arch] ||= payload_instance.arch if self.respond_to? :payload_instance
|
||||||
opts[:arch] ||= target_arch if self.respond_to? :target_arch
|
opts[:arch] ||= target_arch if self.respond_to? :target_arch
|
||||||
opts[:arch] ||= arch if self.respond_to? :arch
|
opts[:arch] ||= arch if self.respond_to? :arch
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue