- Run Keyword If "${datastore}"!="config" and "${datastore}"!="operational" Fail Invalid value for datastore: ${datastore}
- ${uri} = Run Keyword If "${datastore}"=="config" Set Variable ${CONFIG_API}/${identifier}
- ... ELSE Set Variable ${OPERATIONAL_API}/${identifier}
+ Run Keyword If "${datastore_flag}"!="config" and "${datastore_flag}"!="operational" and "${datastore_flag}"!="rpc" Fail Invalid value for datastore: ${datastore_flag}
+ ${uri} = Run Keyword If "${datastore_flag}"=="config" Set Variable ${CONFIG_API}/${identifier}
+ ... ELSE IF "${datastore_flag}"=="operational" Set Variable ${OPERATIONAL_API}/${identifier}
+ ... ELSE Set Variable ${OPERATIONS_API}/${identifier}