lib/cfa/augeas_parser/reader.rb
# loads a key in a format that AugeasTree expects
loads a key in a format that AugeasTree expects
loads a key in a format that AugeasTree expects
def load_key(prefix, aug_key)
        key = stripped_path(prefix, aug_key)
        key.end_with?("]") ? key.sub(/\[\d+\]$/, "[]") : key
      end
def load_key ( prefix , aug_key ) key = stripped_path ( prefix , aug_key ) key . end_with? ( "]" ) ? key . sub ( / \[ \d + \] $ / , "[]" ) : key end
loads a key in a format that AugeasTree expects
loads a key in a format that AugeasTree expects
# clean from key prefix and for collection remove number inside []
prefix
<not_specific>
aug_key
<not_specific>