Skip to content
Browse files

skip rhevm disable profile if required params are missing

  • Loading branch information...
1 parent 65418e7 commit 601ee822a6559ba76abe9ad02e6cb5a2bc449609 @movitto movitto committed Jan 28, 2013
Showing with 4 additions and 3 deletions.
  1. +4 −3 recipes/aeolus/manifests/profiles/rhevm/disable.pp
View
7 recipes/aeolus/manifests/profiles/rhevm/disable.pp
@@ -12,9 +12,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-define aeolus::profiles::rhevm::disable ($nfs_mount_point)
+define aeolus::profiles::rhevm::disable ($nfs_mount_point = "")
{
exec {"umount $nfs_mount_point":
- onlyif => [["mount -l | grep $nfs_mount_point"],
- ["sh -c '! (ps -ef | grep -v grep | grep dc-rhev-image)'"]]}
+ onlyif => ["/usr/bin/test -d $nfs_mount_point",
+ "mount -l | grep $nfs_mount_point",
+ "sh -c '! (ps -ef | grep -v grep | grep dc-rhev-image)'"]}
}

0 comments on commit 601ee82

Please sign in to comment.
Something went wrong with that request. Please try again.