Get zone from config and add dns/base_spec

This commit is contained in:
Jake Spain 2023-02-07 07:28:50 -05:00
parent 65f04254a8
commit b1e20a2fc0
No known key found for this signature in database
GPG key ID: BC1C4DA0A085E113
3 changed files with 184 additions and 4 deletions

View file

@ -34,6 +34,18 @@ module Vmpooler
nil
end
# Returns this dns plugin's configuration
#
# @returns [Hashtable] This dns plugins's configuration from the config file. Returns nil if the dns plugin config does not exist
def dns_config
@config[:dns_configs].each do |dns|
# Convert the symbol from the config into a string for comparison
return (dns[1].nil? ? {} : dns[1]) if dns[0].to_s == @dns_plugin_name
end
nil
end
def global_config
# This entire VM Pooler config
@config

View file

@ -34,10 +34,6 @@ module Vmpooler
# Helper Methods
def get_dns_plugin_for_pool(pool_name)
end
# inputs
# [String] pool_name : Name of the pool to get the configuration
# returns