Changes

Jump to: navigation, search

OPS245 Lab 2

2 bytes removed, 16:38, 1 October 2021
m
INVESTIGATION 4: USING PYTHON TO AUTOMATE MANAGING VIRTUAL MACHINES
<li>Add an else statement to handle the user not wanting to back up every VM. Inside that else clause ask the user which VM they would like to back up (you can even give them the names of available VMs (Centos1, Centos2, Centos3).</li>
<li>Now nest an if statement inside that else so that your script can handle what your user just responded with. If they asked for Centos1, back up Centos1. If they want to back up Centos2, only back up Centos2, etc. Hint: You might want to use elif for this.</li>
<li>Test your script again. You should now have a script that:<ul><li>Makes sure the user is running the script with elevated permissions.</li><li>Asks the user if they want to back up every VM.</li><li>If they want to back up every VM, it backs up every VM.</li><li>If they the user does not want to back up every VM, the script asks them which VM they do want to back up.</li><li>If they the user selected a single VM, the script will back up that one VM.</li></ul></li>
</ol>
572
edits

Navigation menu