Hi. I know that when I use two resources that have the same name, I might get "deprecated feature used: resource cloning" warning. I could change the name of resources to avoid resource cloning and get rid of that warning. But what if I can not change resource name? Let's say I have mount at the beginning of my recipe:
mount '/mnt/directory' do device "//192.168.1.2/something" action [:mount] end
and then at the end I have umount:
mount '/mnt/directory' do device "//192.168.1.2/something" action [:umount] end
I know that this is not common to do both mount and umount in one recipe, but that's my unorthodox way of achieving something. While executing this recipe I get warning about "deprecated feature used: resource cloning". How can I avoid that warning while I can not change the name of second resource, since "/mnt/directory" is the name and I can not change the directory on which the umount will take action?